Skip to content
SprecherEast
Issue 313

Epic: Passkey sign-in and recovery

Back to our plan
Open
enhancementauthpriority: low

Residents can sign in with a passkey: the phone's or computer's own screen lock, instead of typing a password. Passkeys can't be phished and need no outside provider. They are added to an account a resident already has, and email and password stay as the way back in.

The layer is ours, thin and tested, on @simplewebauthn/server and /browser, in the accounts module, shaped like the Google sign-in (#188, PR #505). The comparison of every option, with numbers, and the owner's sign-off are in the comments above.

Out of scope: passkeys as the only way into an account (no account without email recovery); creating an account from a passkey; the neighborhood forum's own login (#553); any claim about residency (#314); previews' outside sign-in (#1079).

Done when:

  • A resident can add, use and remove a passkey on a phone and on a desktop.
  • Losing every passkey never locks anyone out: email recovery still works.
  • Tests cover registration, sign-in, a replayed challenge and removal.
  • /admin, sign-out, the lockout and "keep me signed in" work the same after a passkey sign-in.
  • The feature is on in production, and the accounts note describes it.

Milestone: One login for the site and forum.


Generated by Claude Code, opens in a new tab

Issues in this epic

See it on GitHub, opens in a new tab