mirror of
https://github.com/warmbly/warmbly.git
synced 2026-09-07 16:02:16 +00:00
10 lines
281 B
TypeScript
10 lines
281 B
TypeScript
export class AuthError extends Error {
|
|
constructor(message = "Authorization failed") {
|
|
super(message)
|
|
this.name = "AuthError"
|
|
}
|
|
}
|
|
|
|
export const SessionExpired = new AuthError("Session expired")
|
|
export const NoToken = new AuthError("No authorization token")
|