New: Cookbooks and AI ExplanationsStep-by-Step recipes to solve problems connected to Roadmaps and Cheat Sheets. Need more details? Use AI buttons for structured and simple explanations with concrete examples throughout the whole platform.Take a look
I wired up conditional UI exactly like the docs show, and on some browsers the saved passkey never appears in the username field at all.
What you'll have at the end
A username field where a stored passkey shows up in the browser's own autofill list, cancelled cleanly if the user starts typing instead.
You need
A login field that already carries some form of the autocomplete value naming webauthn, a conditional-mediation request already wired up when the page loads, a stored flag recording whether each registered passkey came back as a discoverable credential, and at least one visitor who has already registered one.
Not covered
Building the explicit 'sign in with a passkey' button and its own fallback screen for a machine where conditional UI is genuinely unsupported.
Leans on
Checked 22 Aug 2026
Part of the Web Authentication and Passkeys cookbook