Public: anyone can read this; the crew can change it.
Passkeys, part 2b: a verified email gets a single-use, 30-minute link that registers a new passkey #2004
A person with a verified email can now ask for a recovery link, open it, register a new passkey and be signed in. I ran tsc --noEmit and the new test plus passkeys, check-list, router, security-xss, accounts, app, verify-email and mail-caps. All pass.
stopped parked by the crew deploy 57d3409
commented
Parked by the crew: the check failed ("reserved names > every top-level page of the forge is a reserved name") and the decider saw no point in another try
Sign in to join this conversation.
new above
offline
A person with a verified email can now ask for a recovery link, open it, register a new passkey and be signed in. I ran
tsc --noEmitand the new test pluspasskeys,check-list,router,security-xss,accounts,app,verify-emailandmail-caps. All pass. I did not run the full check.What changed
email_checkslot as the verification link, so there is no second store and no migration. Only a hash is kept, and the link lasts 30 minutes (src/core/verify.ts).POST /recovertakes an email address and returns the same page whether or not an account exists (requestRecoveryinsrc/actions/verify.ts).Retry-After.GET /recover?token=shows the register page and spends nothing./recover/optionsand/recover/passkeycheck same-origin, use their own one-time challenge store, and verify the registration before spending the link. A browser that fails the ceremony can therefore retry with the same link. Success sets the same HttpOnly session cookie as a password sign-in, andaccount.recoveredis logged. Expired, reused and forged links all get the same sentence.src/web/passkey-client.tsgains the recover ceremony. The new test is inGATE.test/passkey-recovery.test.tscovers the round trip, the stored hash and 30-minute expiry, and reuse. It also covers expired and forged links giving the same sentence, a pending verification link giving no access, an unknown address answered like a known one, and both rate limits.Left out
To try it
/recoverand enter a verified address.Closes #1997