WIP: feat(auth): add passwordless passkey sign-in #412
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/passwordless-passkey-login"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add a “Sign in with passkey” button to the login page. Members with a discoverable passkey registered for the site can choose their account in the device picker and sign in without entering an email, password, or TOTP code. English and French labels and cancellation messages are included.
The public options/verification endpoints require biometric or device PIN verification, verify credential ownership and the WebAuthn proof, and preserve cookie consent and required email verification. Challenges expire after five minutes and are consumed atomically; both endpoints have IP throttles. Success and rejection are audited without retaining credential material or tokens. Password login and existing MFA flows remain available.
Validation:
npm teston Node 24 passed: syntax/lint checks, 583 unit tests, 3 contract tests, and 260 integration tests (846 total). New coverage includes real signed WebAuthn assertions, invalid signatures/origins/RPs/user handles, missing user verification, replay, expiry, consent, and client cancellation.Updated
docs/API ROUTES.mdandapi/schema/openapi.yaml. No new dependencies, permissions, environment variables, or changes to.env.example/docs/CONFIG.mdare needed. A new MongoDB collection stores short-lived login challenges with a TTL index; existing user documents need no migration. Existing RP_ID/RP_ORIGIN settings apply. Older non-discoverable security keys can continue using password plus passkey MFA. Physical device/browser passkey testing remains a manual check.feat(auth): add passwordless passkey sign-into WIP: feat(auth): add passwordless passkey sign-inView command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.