chore: created and added new errors in jwt.strategy.ts file

This commit is contained in:
Balu Babu
2023-01-11 18:41:06 +05:30
parent d98e7b9416
commit d3a43cb65f
2 changed files with 20 additions and 3 deletions

View File

@@ -234,3 +234,15 @@ export const TOKEN_EXPIRED = 'auth/token_expired' as const;
* (AuthService)
*/
export const MAGIC_LINK_EXPIRED = 'auth/magic_link_expired' as const;
/**
* No cookies were found in the auth request
* (AuthService)
*/
export const COOKIES_NOT_FOUND = 'auth/cookies_not_found' as const;
/**
* Access Token is malformed or invalid
* (AuthService)
*/
export const INVALID_ACCESS_TOKEN = 'auth/invalid_access_token' as const;