NotAllowedError (WebAuthn) Authentication Origin: Application & API OSI layer 7 · Application Last updated 13 Oct 2026

WebAuthn / Passkeys: NotAllowedError: The operation either timed out or was not allowed

The browser refused the passkey/WebAuthn ceremony — the user cancelled, it timed out, no matching credential, or the call wasn’t triggered by a user gesture.

Exact message you may see NotAllowedError: The operation either timed out or was not allowedThe operation either timed out or was not allowedSee: https://www.w3.org/TR/webauthn-2/#sctn-privacy-considerations-client
Seen on: REST API

Meaning

The error is deliberately vague for privacy. Common causes: user dismissed the dialog, allowCredentials lists credentials not on this device, requests from iframes without permissions, or calling navigator.credentials.get without a click.

Common causes

  • User cancelled or timeout expired
  • No matching credential on this device
  • Called without a user gesture or in a cross-origin iframe
  • Platform authenticator not available

⚡ Quick fix

  1. Treat it as cancellation and offer retry/other methods
  2. Use discoverable credentials (empty allowCredentials) for passkeys
  3. Trigger from a button click; set publickey-credentials permissions for iframes

Detailed fix by platform

JavaScript

  1. javascript
    try { await navigator.credentials.get({ publicKey: options }); }
    catch (e) { if (e.name === "NotAllowedError") showMessage("Passkey sign-in was cancelled or timed out."); }

How to diagnose

  1. Trigger — User gesture?
  2. Credentials — Exist on this device?
  3. Context — Iframe/origin

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Application & API. Errors that are often confused with or caused by this one (click to open):

access_denied — OAuth 2.0 Error: access_denied (The user or authorization server denied the request) (Authentication)access_deniedauth/invalid-credential — Firebase Auth: auth/invalid-credential (auth/wrong-password, auth/user-not-found, auth/invalid-login-credentials) (Authentication)auth/invalid-credenti…Illegal arguments: undefined, string — bcrypt error: Illegal arguments: undefined, string / data and salt arguments required / data and hash arguments required (Authentication)Illegal arguments: un…NotAuthorizedException — AWS Cognito: NotAuthorizedException: Incorrect username or password (Authentication)NotAuthorizedExceptionrelying party ID is not a registrable domain suffix — WebAuthn: SecurityError: The relying party ID is not a registrable domain suffix of, nor equal to the current domain (Authentication)relying party ID is n…Unable to verify secret hash for client — AWS Cognito: NotAuthorizedException: Unable to verify secret hash for client x (Authentication)Unable to verify secr…UserNotConfirmedException — AWS Cognito: UserNotConfirmedException: User is not confirmed. (Authentication)UserNotConfirmedExcep…NotAllowe…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.