Class AnonymousSessionError

Error thrown when an anonymous session operation fails.

The code field identifies the specific failure reason. Codes session_expired and invalid_session_token are handled silently by AnonymousSessionClient.getAccessToken and will never reach the caller from that method. All other codes are surfaced directly.

Hierarchy

  • Error
    • AnonymousSessionError

Constructors

Properties

Constructors

  • Parameters

    • code: string
    • message: string
    • Optional cause: AnonymousSessionApiErrorResponse

    Returns AnonymousSessionError

Properties

cause?: AnonymousSessionApiErrorResponse

The raw error response from Auth0, if available.

code: string

Machine-readable error code identifying the failure reason. Maps to the error field in the Auth0 API response.