implement proper jwt checking in authchecker

ref #12
This commit is contained in:
2020-12-05 17:59:43 +01:00
parent e5b605cc55
commit 76e19ca28d
4 changed files with 22 additions and 29 deletions

View File

@@ -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
*/