🐛 server: fix multi-device passkey auth#1038
Conversation
🦋 Changeset detectedLatest commit: 3210782 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (9)
💤 Files with no reviewable changes (3)
WalkthroughThis PR removes WebAuthn counter validation from the server's credential authentication and card update flows, and drops the ChangesWebAuthn counter removal
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 3 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 14fdc0272a
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
There was a problem hiding this comment.
Code Review
This pull request modifies the WebAuthn authentication flow to support multi-device passkeys by hardcoding the authenticator counter to zero and removing the counter field from database queries in authentication and card management modules. While this change enables compatibility with synchronized passkeys, feedback highlights that it disables clone detection for hardware authenticators. It is also recommended to remove the now-redundant database update logic for the counter to avoid unnecessary writes.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1038 +/- ##
==========================================
+ Coverage 72.89% 73.00% +0.10%
==========================================
Files 243 243
Lines 10343 10421 +78
Branches 3406 3437 +31
==========================================
+ Hits 7540 7608 +68
- Misses 2499 2506 +7
- Partials 304 307 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
closes #1037
Summary by CodeRabbit
Bug Fixes
Chores