Skip to main content

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.
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.
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.
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

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

References