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 propagated by AnonymousSessionClient.getAccessToken so the calling SDK can recover using its own stored state.

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.