@@ -23,6 +23,17 @@ export class IllegalJWTError extends UnauthorizedError {
|
||||
message = "your provided jwt could not be parsed"
|
||||
}
|
||||
|
||||
/**
|
||||
* Error to throw when user is nonexistant or refreshtoken is invalid
|
||||
*/
|
||||
export class UserNonexistantOrRefreshtokenInvalidError extends UnauthorizedError {
|
||||
@IsString()
|
||||
name = "UserNonexistantOrRefreshtokenInvalidError"
|
||||
|
||||
@IsString()
|
||||
message = "user is nonexistant or refreshtoken is invalid"
|
||||
}
|
||||
|
||||
/**
|
||||
* Error to throw when provided credentials are invalid
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user