Skip to content
SprecherEast
Issue 1364

enhancement: Offer a passkey right after sign-in and explain when none is found

Back to our plan
Done
enhancementfrontendauthpriority: medium

Type

enhancement

Problem

A resident who taps "Log in with a passkey" before saving one sees the browser's own "can't find a passkey" box and no way forward. Adding a passkey is only on the account page, so it is easy to miss. The owner expected setup to feel seamless (device biometrics, or a QR code with a phone) and it did not.

Proposed fix

  • Right after a sign-in with email and password, or with Google, offer to add a passkey on this device, with one clear button and a way to say not now (and not ask again for a while). This follows the FIDO Alliance guidance to offer passkey creation at account-related moments.
  • On the login page, when the passkey step finds nothing, say in our own words what happened and what to do next (log in as usual, then add one), instead of leaving the browser's box as the only message.
  • Keep the add step working with the browser's own prompt, which is where biometrics and the phone QR code are offered; the site cannot force those.

Existing work compared

  • Searched: open issues for passkeys (#313 epic, #1342 autofill races, #1318 switch-on); none covers an offer after sign-in or the none-found message. Native first: the browser's WebAuthn prompt already provides biometrics and the QR code; this adds only the offer and the message. New work under #313.

Acceptance criteria

  • Not done: After a password or Google sign-in, a signed-in resident without a passkey is offered one; accepting adds it, declining is remembered.
  • Not done: A resident with a passkey, or who declined, is not offered again at every sign-in.
  • Not done: The login page explains a none-found result in plain words, with the way forward.
  • Not done: Tested on phone and desktop, with keyboard use and an axe check, and brand voice checked.

Files likely touched

src/modules/accounts/ (use-cases, ui), src/platform/lib/messages/accounts.ts, the accounts note.

Must not touch

Sign-in security rules (recent sign-in, rate limits) and the passkey data layer.

Open questions

  • None.

Area

auth, frontend

Priority

medium


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab