Passkeys: a password reset removes them; stricter RSA key size; one count per sign-in
- github
- github/openchronology/timeline-app
- commit
- main
- github/athanclark
A password reset now deletes the account's passkeys in the same transaction that ends its sessions and API keys, since a passkey can sign in on its own. Two-factor authentication stays on: when passkeys were the only factor, recovery codes answer the two-factor step and confirm adding an authenticator app or a passkey again. The reset email, the notice, the reset page, docs/authentication.md and the OpenAPI description say so. RS256 keys are checked by the modulus size node:crypto reads (2048 to 8192 bits) rather than by the length of its encoding. Asking for passkey sign-in options has its own per-address limit, so a passkey sign-in counts once against the sign-in attempts it shares with password sign-in. Tests cover passkey sign-in for suspended and unconfirmed accounts, another account's passkey, desktop sessions and CSRF on the management routes, challenges answered for another purpose, a padded short RSA modulus, the sign-in limit, and a reset removing passkeys. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/commit/9b0b759d09647d4ff22a965b23ccccec4a418d5a