v157 · webauthn · developer trial
Web Authentication Conditional UI Passive Mode
Conditional UI lets a page offer passkeys inside form autofill — which only works if the page has a sign-in form. Passive mode adds uiMode: 'passive' to a mediation: 'conditional' request: the browser shows a small, ignorable, non-modal sign-in suggestion on any page, but only when you actually have a passkey or saved password for the site. No credentials, no UI, and the promise simply never settles. No user activation needed — so a page can offer it on load.
concepts
-
Passive sign-in prompt
The canonical call on a page with no sign-in form: probe
conditionalPassiveGet, fire the request, watch it pend, abort it, or create a demo passkey and sign in through the bubble — with the returned credential’s clientData inspected live. -
Capability inspector
Four independent probes — the capability record (spec key and Chrome’s earlier
ambientGet), theuiModemember read, the enum vocabulary via pre-aborted signals, and a Chromium renderer-branch check — combined into a diagnosis: fully enabled, renderer-only, or not enabled. -
Paywall unlock
The explainer’s motivating case: a paywalled article fires a passive request on load, without a click, and unlocks in place when a returning subscriber picks their account. Everyone else just sees the normal sign-in link.
-
Passive + autofill, one request
A sign-in form where one pending request feeds both the passive suggestion and the username autofill, with password credentials included and the abort-then-re-arm pattern around an explicit “Sign in with a passkey” modal button.
-
Request shape matrix
Nine real request shapes at the edges — unsupported credential combinations, password-only, the spec’s sibling
'active','immediate'under conditional, an unknown value, and the pre-146 prototype shape — plus migration notes for theambientGet→conditionalPassiveGetrename.
why it exists
Users often don’t notice they’re signed out, or avoid the sign-in flow because they expect it to be painful. Sites that would be better signed-in (paywalled articles, personalised search results) can’t use Conditional UI without a form, and a modal WebAuthn prompt on page load is hostile to the many visitors with no passkey. Passive mode sits between: the browser only speaks up when sign-in is one tap away, and it never blocks the page.
| request | needs a form | needs a click | no credentials |
|---|---|---|---|
mediation: 'conditional' | yes (autofill) | no | never settles |
mediation: 'conditional', uiMode: 'passive' | no | no | never settles, no UI |
uiMode: 'immediate' | no | yes (transient activation) | rejects NotAllowedError |
modal (mediation: 'optional') | no | in practice yes | shows QR / security-key UI |
the API
const caps = await PublicKeyCredential.getClientCapabilities();
if (caps.conditionalPassiveGet || caps.ambientGet /* earlier Chromium key */) {
const cred = await navigator.credentials.get({
mediation: 'conditional',
uiMode: 'passive', // CredentialRequestOptions member, sibling of mediation
publicKey: { challenge, rpId: 'example.com', allowCredentials: [] },
password: true, // optional: saved passwords in the same UI
signal: controller.signal, // abort to withdraw the suggestion
});
// resolves only if the user picks a credential
}
references
- ChromeStatus entry (5068149209825280)
- Explainer: Conditional UI without Autofill
- w3c/webauthn PR #2485 — spec text (uiMode passive/active, conditionalPassiveGet)
- Credential Management: CredentialRequestOptions.uiMode
- issues.chromium.org/532206357 — implementation tracking
- w3c/webauthn issue #2144 — original proposal
- Chromium team sample page
- Mozilla standards position request · WebKit standards position request