Optional
Readonly
causeThe underlying error, if any.
IMPORTANT When this error is from the Identity Provider (IdentityProviderError) it can contain user input and is only escaped using basic escaping for putting untrusted data directly into the HTML body.
You should not render this error without using a templating engine that will properly escape it for other HTML contexts first.
Readonly
codeA machine-readable error code that remains stable within a major version of the SDK. You should rely on this error code to handle errors. In contrast, the error message is not part of the API and can change anytime. Do not parse or otherwise rely on the error message to handle errors.
Readonly
nameThe error class name.
Optional
Readonly
statusThe HTTP status code, if any.
Static
Readonly
code
The error thrown by the login API route handler. It extends HandlerError.
See
the cause property contains the underlying error.