Class NetworkError

Thrown when a request to the token endpoint fails, for example because the device is offline or a browser extension blocks it. The request is retried before this is thrown. The error is network_error, and the message is kept from the underlying failure (e.g. the browser's Failed to fetch). If the request times out, TimeoutError is thrown instead.

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

data?: Record<string, any>

Any other fields from the server's error response (for example auth_session).

error: string

The error code from the server response.

error_description: string

The error_description from the server response.

Methods