Establish project foundation and shared utilities
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
/** Authentication failure whose message is safe to return to clients. */
|
||||
export class UnauthorizedError extends Error {
|
||||
/**
|
||||
* @param message - Client-safe unauthorized summary.
|
||||
*/
|
||||
constructor(message = 'Unauthorized') {
|
||||
super(message);
|
||||
this.name = 'UnauthorizedError';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user