Add passkey sign-in to a web app

8 steps · about 1 h 29 min · Intermediate

  1. Understand what a passkey is and why it resists phishing (guide, passkeys.dev, 6 min)

    Gives the mental model before touching any code.

  2. 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.

  3. Learn the WebAuthn registration and authentication calls (reference, MDN Web Docs, 15 min)

    The browser API reference behind every passkey.

  4. Create a credential with navigator.credentials.create (reference, MDN Web Docs, 8 min)

    Details each option you pass when registering.

  5. Build a passkey registration step (article, web.dev, 15 min)

    A worked client and server registration flow.

  6. Offer passkeys in the sign-in form with autofill (article, web.dev, 12 min)

    Lets users pick a passkey from the username field.

  7. Verify registrations and assertions on the server with SimpleWebAuthn (reference, SimpleWebAuthn, 15 min)

    Avoids hand-writing the tricky signature and origin checks.

  8. Move existing password users onto passkeys (guide, passkeys.dev, 8 min)

    Covers prompting and upgrading accounts already in your app.