Optional cause: PasskeyGetTokenApiErrorResponseOptional Readonly authThe auth session token to use when retrying. Only present when isRetryable
is true.
Optional bodyRaw response body text, when available.
Optional causeOptional headersResponse headers from the error response, when available. Native Fetch Headers.
Readonly istrue 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.
Optional statusHTTP status code from the error response, when available.
Optional Readonly verificationIdentifiers that still require a valid OTP code. Only present when isRetryable
is true and the failure was due to a wrong OTP code.
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.