Optionalcause:
PasskeyGetTokenApiErrorResponse
Optional
Readonlyauth
The auth session token to use when retrying. Only present when
isRetryable is true.
Optionalbody
Raw response body text, when available.
Optionalcause
Optionalheaders
Response headers from the error response, when available.
Native Fetch Headers.
Readonlyis
true when Auth0 returned
invalid_grant with an auth_session,
meaning the session is still alive and the user can retry with
corrected OTP codes. false for every other error,
so check the error (for example with
isMfaRequiredError) before starting a new flow.
Branch on this field — never on HTTP status code or
error_description text, which are intentionally
identical on retryable and terminal
invalid_grant paths.
OptionaloriginalOriginal stack trace with no modifications
Optionalstack
OptionalstatusHTTP status code from the error response, when available.
Optional
Readonlyverification
Identifiers that still require a valid OTP code. Only present
when isRetryable is true and the
failure was due to a wrong OTP code.
OptionalzoneStack trace where extra frames have been removed and zone names added.
Error thrown when exchanging a passkey credential for tokens fails.
Unlike the challenge errors, this carries
mfa_token/mfa_requirementson itscausewhen the server responds withmfa_required.When identifier verification is required,
isRetryableindicates whether the user entered a wrong OTP code. A retryable error means the caller should re-collect OTP codes for the identifiers inverificationRequiredand retrygetTokenByPasskeywith the same credential andauthSession. A non-retryable error is any other error, so check the error (for example withisMfaRequiredError) before starting a new flow.