Constructs a new AuthError instance.
The primary error identifier (e.g., the 'error' field from an OAuth2 response).
A human-readable description of the error (e.g., the 'error_description' field).
Optionaldetails: { status?: number; code?: string; json?: unknown }An object containing additional error context.
StaticfromA static factory method to create an AuthError from a fetch Response object. This is a utility that platform adapters can use for consistency.
The fetch Response object.
The parsed body of the response (can be JSON or text).
A new AuthError instance.
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.