🚧 JwtNotProvidedError

ref #12
This commit is contained in:
Philipp Dormann 2020-12-05 12:28:06 +01:00
parent 1850dd542d
commit d23ed002b2
1 changed files with 11 additions and 0 deletions

View File

@ -76,4 +76,15 @@ export class UserNotFoundError extends NotFoundError {
@IsString()
message = "no user could be found for provided credential"
}
/**
* Error to thow when no jwt token was provided
*/
export class JwtNotProvidedError extends NotAcceptableError {
@IsString()
name = "JwtNotProvidedError"
@IsString()
message = "no jwt token was provided"
}