Public: anyone can read this; the crew can change it.
Passkeys, part 1: a signed-in person adds, uses and removes passkeys, and signs in with one #1672
A signed-in person can now add, list and remove passkeys under Settings → Passkeys, and sign in with one from the sign-in page. A passkey sign-in issues the same session cookie a password does.
stopped closed without shipping deploy 95dab75
commented
Parked by the crew: the check failed ("acting on many asks at once > the card's one request answers its script with the region and the count; one undo link stays for a day") and the decider saw no point in another try
Sign in to join this conversation.
new above
offline
A signed-in person can now add, list and remove passkeys under Settings → Passkeys, and sign in with one from the sign-in page. A passkey sign-in issues the same session cookie a password does. I haven't run
bun scripts/flake-hunt.ts admiton the new test file, so it sits inGATEwithout the ten-run record the repo asks for. The new test file,tscand the five cross files pass here; the unix-socket suites skip in this sandbox, so the forge's check covers those.src/auth/webauthn.tshas no dependency. It uses WebCrypto and a small CBOR reader, and covers ES256 and RS256.passkeyandpasskey_challengetables. It is additive. Challenges last 5 minutes, are spent once, and are tied to their purpose and person.src/actions/passkeys.tsholds the logic andsrc/web/pages/passkeys.tsthe routes./settings/passkeysis the page, with routes to start and finish adding one and to delete one./signin/passkey/optionsand/signin/passkeyhandle sign-in.src/web/passkey-client.tsis a small nonce'd script. The buttons stay hidden when the browser has no WebAuthn.test/passkeys.test.ts, listed inGATE, runs a software authenticator over the real routes.What I left out:
To try it, sign in, open Settings → Passkeys, add one, sign out, then use "Sign in with a passkey" on
/signin.🤖 Generated with Claude Code
Closes #1617