Passkeys (WebAuthn) for two-factor and sign-in
- github
- github/openchronology/timeline-app
- commit
- main
- github/athanclark
Accounts add, rename and remove passkeys under Account → Security, confirmed as any security change; adding or removing one revokes other sessions and notifies, and the first one turns two-factor on with recovery codes. A passkey answers the sign-in's two-factor step and every confirmation that takes a code (security changes, API keys, deletion, administration and moderation). Where PASSKEY_SIGN_IN allows it (the default), "Sign in with a passkey" signs in with a discoverable passkey. Verification is in server/webauthn.mjs on node:crypto alone (CBOR, COSE EdDSA/ES256/RS256): origin and RP ID from APP_ORIGIN, user verification required, signature-counter clone detection, and five-minute single-use challenges bound to the session or browser. New tables oc_passkeys and oc_passkey_challenges. Fixes #372 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/commit/3e1ce20933e6cc9d792dea701ae9ec934c8f940b
Related
Open Passkeys (WebAuthn) for two-factor and sign-in in the timeline