feat: add WebAuthn passkey authentication - #485
Merged
Penielka merged 4 commits intoAug 30, 2026
Conversation
Implement passwordless authentication via WebAuthn passkeys as primary or second factor with device management and recovery flows. - Add Passkey Mongoose model for credential storage - Create WebAuthn service for registration/authentication ceremonies - Add passkey auth routes (register, login, MFA, device mgmt, recovery) - Create frontend components for registration, login, device management, MFA, and recovery - Extend AuthContext with passkey support - Preserve existing password-based auth for legacy users Closes AetherEdu#409 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
Update package-lock.json (root) and frontend/package-lock.json to resolve @simplewebauthn/server and @simplewebauthn/browser dependencies required by the passkey authentication feature. Fixes CI failures caused by npm ci not finding the new packages. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
Resolve lock file conflicts and sync with upstream main. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Title
feat: add WebAuthn passkey authentication
────────────────────────────────────────────────────────────────────────────────
PR Description
Summary
Implement passwordless authentication via WebAuthn passkeys as a primary or second factor, with device management and recovery flows. This adds full FIDO2/WebAuthn support to both backend and frontend while preserving existing password-based authentication for legacy users.
Issue
Closes #409
Root Cause
The platform currently only supports email/password authentication. There was no WebAuthn/passkey infrastructure, making passwordless authentication and hardware security key support impossible.
Solution Implemented
Built a complete WebAuthn passkey system using @simplewebauthn/server (backend) and @simplewebauthn/browser (frontend), following the FIDO2 spec. The implementation covers:
Key Changes
Affected Files
Trade-offs / Considerations
Testing
CI Verification
// bash
cd backend && npm install && npm test
cd frontend && npm install
Please kindly review this task. If there are any corrections, improvements, adjustments, or merge conflicts that you notice regarding my implementation, I'd really appreciate your feedback. I'd also love to hear your overall review of my work on this branch.
Thank you!