Skip to content
View in the app

A better way to browse. Learn more.

Enpass Discussion Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Passkey registration fails with NotAllowedError when site uses userVerification: "discouraged"

Featured Replies

Environment: Enpass browser extension on Firefox, Linux (Arch)

Issue: Passkey registration immediately fails with NotAllowedError on sites that set authenticatorSelection.userVerification to "discouraged" in their WebAuthn navigator.credentials.create() call. The Enpass passkey prompt never

appears.

Affected site: npmjs.com (2FA setup)

Steps to reproduce:

1. Go to npmjs.com → Account Settings → Enable 2FA

2. Enpass prompt never appears, site shows "Device registration failed"

3. Browser console shows: NotAllowedError: The request is not allowed by the user agent or the platform in the current context

Root cause: npmjs.com passes userVerification: "discouraged" and residentKey: "discouraged" in the WebAuthn options. This is a valid WebAuthn configuration, but Enpass immediately rejects it.

Proof: Patching the options to "preferred" before the call reaches Enpass makes it work:

const origCreate = navigator.credentials.create.bind(navigator.credentials);

navigator.credentials.create = function(opts) {

opts.publicKey.authenticatorSelection.userVerification = "preferred";

opts.publicKey.authenticatorSelection.residentKey = "preferred";

return origCreate(opts);

};

After this patch, Enpass opens normally and registration succeeds.

Comparison: Sites like webauthn.io that use userVerification: "preferred" work fine with Enpass.

Confirmed not Firefox: A clean Firefox profile with no extensions shows Firefox's native WebAuthn dialog on npmjs.com without issues.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.