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 show a passkey sign-in button to every visitor, and on some browsers or older phones, tapping it just throws an error instead of doing anything.
What you'll have at the end
A sign-in button that only renders once a real capability check confirms the browser and device can actually complete a passkey sign-in.
You need
A sign-in screen with a passkey button already wired to call the browser's sign-in prompt, in a codebase that can hold and branch on a small piece of local state.
Not covered
Building the sign-in call itself, verifying it on the server, or offering a passkey inside the username field's autofill list.
Rehearse a passkey flow in Chrome's DevTools
go there to prove the check flips correctly on a device you do not personally own, before trusting it in production.
A WebAuthn error that reaches the user as something went wrong
go there for what to show when a supported device's own sign-in call still fails after the control has appeared.
Checked 22 Aug 2026
Part of the Web Authentication and Passkeys cookbook