Appearance
zero-auth API Documentation v1.2.0
zero-auth API Documentation / AUTH_ERROR_CODES
Variable: AUTH_ERROR_CODES
constAUTH_ERROR_CODES:object
Defined in: src/errors/authErrors.ts:3
Type Declaration
AUTH_CSRF_INVALID
readonlyAUTH_CSRF_INVALID:"AUTH_CSRF_INVALID"="AUTH_CSRF_INVALID"
The request is missing or has an invalid CSRF token (403).
AUTH_FORBIDDEN
readonlyAUTH_FORBIDDEN:"AUTH_FORBIDDEN"="AUTH_FORBIDDEN"
The user is authenticated but lacks the required role/permission (403).
AUTH_TOKEN_EXPIRED
readonlyAUTH_TOKEN_EXPIRED:"AUTH_TOKEN_EXPIRED"="AUTH_TOKEN_EXPIRED"
The token has expired.
AUTH_TOKEN_INVALID
readonlyAUTH_TOKEN_INVALID:"AUTH_TOKEN_INVALID"="AUTH_TOKEN_INVALID"
The token signature is invalid or the token is malformed.
AUTH_TOKEN_MISSING
readonlyAUTH_TOKEN_MISSING:"AUTH_TOKEN_MISSING"="AUTH_TOKEN_MISSING"
No token was found in the request (missing Authorization header or cookie).
AUTH_UNAUTHORIZED
readonlyAUTH_UNAUTHORIZED:"AUTH_UNAUTHORIZED"="AUTH_UNAUTHORIZED"
The user is not authenticated (generic 401).