> ## Documentation Index
> Fetch the complete documentation index at: https://docs.corbado.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Passkey Login: Error States

> Web error, retry and fallback states for passkey sign-in.

## Error States During User Login

This page covers passkey cancellation, lookup failures, stale credentials and account states. Ordinary identifier-field and password validation belong to the normal login flow.

### General Login Errors

These failures happen before a passkey ceremony starts or after the server receives its result.

![Representative web login error states shown on macOS](https://docs.corbado.com/images/authentication-flow/web-app/desktop/passkey-login-errorstates-macos.webp)

Representative web login error states shown on macOS

Download Representative web login error states shown on macOS (Download image)

**1. Account or passkey lookup fails**

* A timeout, network problem or server error is not treated as proof that the account or passkey does not exist.
* No passkey ceremony starts from the incomplete result. The user can retry or use the available fallback.

**2. Passkey request or verification fails**

* Problems the application knows, such as invalid request options, RP ID or origin configuration, remain separate from ambiguous browser rejections.
* The product does not invent a cause such as a missing passkey or failed biometric when the browser does not provide one.

**3. Selected passkey is no longer accepted**

* Tell the user that this passkey can no longer sign in and offer another passkey plus fallback.
* If the credential ID is conclusively unknown, call `signalUnknownCredential` where supported. The signal remains best effort.

**4. Account is not allowed to sign in**

* A valid passkey does not bypass closed, deleted, disabled, inactive, locked or restricted account states.
* The configured account-status message, fallback or recovery route is shown instead of creating a session.

### Passkey Login Errors

Error scenarios, user experience while login into the web-application via passkeys.

> [!NOTE]
>
> **Cancellation depends on how the ceremony started:** automatic identifier-first login should guide the user from retry to fallback, while an explicitly pressed passkey button can return to the unchanged login page. See [passkey ceremony aborts and fallback strategies](https://www.corbado.com/blog/passkey-fallback-recovery).

![Representative web passkey login error states shown on macOS](https://docs.corbado.com/images/authentication-flow/web-app/desktop/passkey-errorstates-macos.webp)

Representative web passkey login error states shown on macOS

Download Representative web passkey login error states shown on macOS (Download image)

**1. First cancellation after identifier-first routing**

* Treat cancellation as a normal user action, not an error.
* Show a calm explanation and make retry the main action. Do not reopen the passkey prompt automatically.

**2. Second consecutive cancellation after identifier-first routing**

* Stop starting passkey login automatically and move directly to the configured fallback.
* A successful login resets the cancellation count.

**3. Cancellation after an explicit passkey button**

* Return to the unchanged login page without an error or forced redirect.
* Keep the passkey button and the other login methods available.

## Acceptance criteria

| Benchmark as | User reach |
| - | - |
| Baseline | Mid |

This baseline covers cancellation and failures around WebAuthn. It does not repeat ordinary identifier or password validation.

| ID | Level | Acceptance criterion | How to verify |
| - | - | - | - |
| **W1.5-AC01** | Core | In automatic identifier-first login, cancelling the first passkey ceremony is not shown as an error. Show a calm explanation with an explicit retry action, and do not reopen the ceremony until the user chooses it. After the second consecutive cancellation, stop starting passkey login automatically and move directly to the configured fallback. A successful login resets the cancellation count. | Cancel the automatic ceremony once. Confirm that no error appears and that the ceremony stays closed until retry is selected. Cancel the retried ceremony and confirm that fallback opens without another automatic prompt. Complete a login and confirm that the next cancellation is treated as the first again. |
| **W1.5-AC02** | Core | When the user explicitly starts login with a passkey button, cancellation returns to the unchanged login page without an error or forced fallback. The passkey button and other login methods remain available. | Start the ceremony from the explicit button and cancel it on the first and repeated attempts. No error or automatic redirect appears, and every login option remains usable. |
| **W1.5-AC03** | Core | If the account or passkey lookup fails because of a timeout, network problem or server error, do not treat the result as “no account” or “no passkey” and do not start a passkey ceremony from incomplete data. Show a temporary service error with retry and the available fallback. | Fail each lookup dependency before route selection. Confirm that no account or credential conclusion is shown and no passkey request starts. Retry performs a fresh lookup, while fallback does not reuse the incomplete result as account or passkey truth. |
| **W1.5-AC04** | Core | When the server no longer accepts the selected credential, explain that this passkey can no longer sign in and offer “Try another passkey” plus fallback. If the credential ID is conclusively unknown, call `signalUnknownCredential` on supporting browsers. After verified fallback, the user can create a replacement passkey. | Attempt login with a credential deleted through settings and with an unknown credential ID. Confirm the message and both next actions. Only the conclusively unknown ID emits the signal, and verified fallback can reach passkey replacement. |
| **W1.5-AC05** | Core | A valid passkey assertion does not bypass the current account status. Closed, deleted, disabled, inactive, locked or restricted accounts do not receive a session and follow the configured account-status or recovery route. | Submit a valid assertion for every account state. Only an account currently allowed to sign in receives a session. |
| **W1.5-AC06** | Quality | Use a specific error only when the application knows the cause. Invalid request options, RP ID or origin configuration and server verification failures can have separate internal states. An ambiguous browser rejection must not be described as a missing passkey, failed biometric or another guessed cause. | Trigger each application-controlled failure and an ambiguous browser rejection. Confirm that known problems remain distinguishable and the ambiguous result uses neutral cancellation or unavailable handling. |

### References

* **Relevant criteria:** **W1.5-AC03–AC06:** [W3C Web Authentication Level 3](https://www.w3.org/TR/webauthn-3/) defines request exceptions, server-side assertion verification and `signalUnknownCredential`.
* **Relevant criteria:** **W1.5-AC01–AC03:** [Corbado: Passkey fallback and recovery](https://www.corbado.com/blog/passkey-fallback-recovery) distinguishes automatic identifier-first login from an explicit passkey button and supports different handling for the first and second abort.
* **Relevant criteria:** **W1.5-AC03–AC04 and W1.5-AC06:** [Corbado: Passkey troubleshooting](https://www.corbado.com/blog/passkey-troubleshooting-solutions) supports separating routing failures, ambiguous platform results and stale-credential replacement.
* **Relevant criteria:** **W1.5-AC04:** [Chrome for Developers: Keep passkeys consistent with credentials on your server](https://developer.chrome.com/docs/identity/webauthn-signal-api) documents the confirmed unknown-credential trigger for `signalUnknownCredential`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.