Add passkey sign-in to a web app
8 steps · about 1 h 29 min · Intermediate
- Understand what a passkey is and why it resists phishing (guide, passkeys.dev, 6 min)
Gives the mental model before touching any code.
- Review the passkey sign-in flow end to end (reference, Google for Developers, 10 min)
Shows the user journey and server pieces you must build.
- Learn the WebAuthn registration and authentication calls (reference, MDN Web Docs, 15 min)
The browser API reference behind every passkey.
- Create a credential with navigator.credentials.create (reference, MDN Web Docs, 8 min)
Details each option you pass when registering.
- Build a passkey registration step (article, web.dev, 15 min)
A worked client and server registration flow.
- Offer passkeys in the sign-in form with autofill (article, web.dev, 12 min)
Lets users pick a passkey from the username field.
- Verify registrations and assertions on the server with SimpleWebAuthn (reference, SimpleWebAuthn, 15 min)
Avoids hand-writing the tricky signature and origin checks.
- Move existing password users onto passkeys (guide, passkeys.dev, 8 min)
Covers prompting and upgrading accounts already in your app.