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.
ReadonlystatusThe HTTP status code of the error response, if available.
ReadonlycodeThe error code returned by Auth0 (e.g., 'invalid_grant'), if available.
ReadonlyjsonThe full JSON response body of the error, if available.
ReadonlytypeA normalized error type that is consistent across platforms. This can be used for reliable error handling in application code.
Represents an error that occurred during DPoP (Demonstrating Proof-of-Possession) operations.
This class wraps authentication errors related to DPoP functionality, such as:
The
typeproperty provides a normalized, platform-agnostic error code that applications can use for consistent error handling across iOS, Android, and Web.Example