-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(passkey): bump @simplewebauthn/server
and @simplewebauthn/browser
to v10.0.0
#10996
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
@masterjanic is attempting to deploy a commit to the authjs Team on Vercel. A member of the Team first needs to authorize it. |
Ooo nice, thanks! I was just looking into upgrading to 10.x the other day! I'll take a closer look at this later today 🙏 |
We're there no other relevant breaking changes other than the base64/uint8array changes? There were a good bit of changes in v10, I just expected us to be affected by more haha |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see the packages/framework-sveltekit/package.json
versions aren't bumped. Can you check that?
@simplewebauthn/server
and @simplewebauthn/browser
to v10.0.0
Got it, I probably missed them. I can also see that some examples have the version listed in the |
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: npm/@auth/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected] |
👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎ This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. |
@masterjanic what do you mean by this exactly?
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #10996 +/- ##
===========================================
+ Coverage 40.91% 53.03% +12.12%
===========================================
Files 176 108 -68
Lines 27924 3373 -24551
Branches 1243 344 -899
===========================================
- Hits 11424 1789 -9635
+ Misses 16500 1584 -14916 ☔ View full report in Codecov by Sentry. |
@masterjanic looks like some of the tests in |
Any update on this? |
Hi @ndom91, its been a long time since I opened this PR. Is there anything missing from my side? Anything that I can do? |
We're now 2 major versions behind -- SimpleWebAuthn just released 11.0.0 (with some meaningful features): https://github.com/MasterKale/SimpleWebAuthn/releases/tag/v11.0.0 |
Now 4 major versions behind: |
Closing since maintainer does not respond. |
@masterjanic @ndom91 |
Sorry, I don't have time to make any more changes to the PR. It has been open for half a year, nobody cared. I switched to better-auth in the meantime, so I don't think I can really contribute anything here. |
Everybody cares about good passkey support of Auth.js. I believe that the maintainers are just catching it up right now. |
☕️ Reasoning
The latest version of SimpleWebAuthn (v10.0.0) was released on April 13th and fixes an issue where the browser webauthn autofill handler was not correctly working due to PublicKeyCredential missing. This version also includes changes to how the credentialID and userID is handled. Further we don't need to encode them to an Uint8Array anymore, because the library now expects base64url strings.
This pull request bumps the version and implements the necessary changes for using the latest version.
🧢 Checklist
I couldn't get the tests running on my machine yet, but I will try to test the changes. Database adapters should not be affected since credentialID and userID is stored as a text field already.
🎫 Affected issues
There are no affected issues but we might prevent further issues by already implementing the latest version of SimpleWebAuthn.
📌 Resources