@ingeze/api-error - v1.0.8
    Preparing search index...

    Type Alias UnauthorizedErrorType

    UnauthorizedErrorType:
        | "UNAUTHORIZED"
        | "INVALID_TOKEN"
        | "INVALID_CREDENTIALS"
        | "ACCESS_TOKEN_INVALID"
        | "REFRESH_TOKEN_INVALID"
        | "API_KEY_INVALID"
        | "UNAUTHORIZED_DEVICE"

    Types representing different authorization error scenarios (HTTP 401).

    These error types specify the particular cause of an authentication or authorization failure.

    Type declaration

    • "UNAUTHORIZED"

      The user is not authenticated or does not have permission to access the resource.

    • "INVALID_TOKEN"

      The provided token is invalid (corrupted, expired, or has an invalid signature).

    • "INVALID_CREDENTIALS"

      The provided credentials (such as email or password) are incorrect.

    • "ACCESS_TOKEN_INVALID"

      The access token has expired or is invalid.

    • "REFRESH_TOKEN_INVALID"

      The refresh token is invalid or has expired.

    • "API_KEY_INVALID"

      The provided API key is invalid or malformed.

    • "UNAUTHORIZED_DEVICE"

      The device is not authorized to perform this action.