v157 · webauthn · composition

Passive + autofill, one request

On a real sign-in page you can have it both ways. The explainer: “Credentials can be simultaneously made available in Passive Mode UI and autofill UI with a single JavaScript call.” This page arms exactly one request, lets you flip between the passive+autofill and autofill-only shapes, and shows the abort-and-re-arm dance an explicit passkey button needs.

a sign-in page that wants both surfaces

One navigator.credentials.get() call, armed on load. With uiMode: 'passive' the browser shows its non-modal suggestion straight away; if you ignore it and later focus the username field, the same pending request surfaces in autofill. Picking a credential in either place resolves the one promise.

request shape (re-arms on change)

Pending request: idle

Waiting for capability probe…

event log

rules this page follows

references