implement proper jwt checking in authchecker

ref #12
This commit is contained in:
philipp committed 2020-12-05 17:59:43 +01:00
1 parent e5b605cc55
commit 76e19ca28d
4 files changed
+22 -29

No files matched your search

+11
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
*/