Auth0 React SDK
    Preparing search index...

    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
    Index
    • Parameters

      • code: string
      • message: string
      • Optionalcause: AnonymousSessionApiErrorResponse

      Returns AnonymousSessionError

    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.