v157 · webauthn · canonical
Passive sign-in prompt
The canonical call: mediation: 'conditional' plus the new uiMode: 'passive', fired on a page with no sign-in form. If you have a passkey for this site the browser offers it in a quiet, ignorable bubble; if you don’t, nothing is shown and the promise simply never settles.
1 · does this browser offer passive mode?
Reads PublicKeyCredential.getClientCapabilities() and looks for the spec key conditionalPassiveGet. Earlier Chromium builds reported the same capability as ambientGet (verified on Chrome 153 with the flag on), so both are shown — raw, not bucketed.
probing…
2 · optional: create a demo passkey for this site
Passive mode only shows UI when a credential for this site already exists. This creates a real discoverable passkey in your passkey manager for this host (delete it from your password manager afterwards). Any pending request on this page is aborted first — only one WebAuthn request can be in flight per page.
3 · fire the passive request — no sign-in form on this page
There is deliberately no <input autocomplete="… webauthn"> anywhere on this page, so ordinary conditional mediation has nowhere to surface. With uiMode: 'passive' the browser instead shows a small non-modal suggestion you can click or ignore.
Request state: idle
what to expect
| situation | browser UI | promise |
|---|---|---|
| flag on, passkey/password for this site | non-modal bubble offering the account(s) | resolves when you pick one; stays pending if you ignore it |
| flag on, no credentials | nothing at all | never settles (until aborted) |
| flag off / unsupported | nothing (treated as ordinary conditional, and there is no autofill field) | never settles (until aborted) |
page calls abort() | bubble removed | rejects AbortError |
const cred = await navigator.credentials.get({
mediation: 'conditional',
uiMode: 'passive', // new value — non-autofill, non-modal UI
publicKey: { challenge, rpId: 'example.com', allowCredentials: [] },
password: true, // optional: offer saved passwords in the same UI
signal: controller.signal,
});