React Native Auth0 - v5.0.0-beta.4
    Preparing search index...

    Class TimeoutError

    Represents a generic authentication or API error from Auth0.

    This class provides a structured way to handle errors, with consistent access to status codes, error codes, and response bodies.

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    Properties

    Constructors

    Methods

    • A static factory method to create an AuthError from a fetch Response object. This is a utility that platform adapters can use for consistency.

      Parameters

      • response: Response

        The fetch Response object.

      • body: any

        The parsed body of the response (can be JSON or text).

      Returns AuthError

      A new AuthError instance.

    Properties

    status: number

    The HTTP status code of the error response, if available.

    code: string

    The error code returned by Auth0 (e.g., 'invalid_grant'), if available.

    json: unknown

    The full JSON response body of the error, if available.