fix(core): update Authenticator schema and types
☕️ Reasoning
- Loosen up
authenticator.transportstype to also acceptnull- Removes the need for each adapter to have an extra method to just coerce
transportstoundefinedif they're missing - This then led to the following cleanup in the pre-existing webauthn implementations in unstorage and prisma adapters
- Removes the need for each adapter to have an extra method to just coerce
- Fix
prismaadapter- Cleanup authenticator method implementations
- Remove unnecessary
transportscoercion methods - Cleanup recommended db schemas in docs
- Fix
unstorageadapter-
listAuthenticatorsByUserIdwasn't fully implemented, this is fixed here - All other authenticator-realted methods are cleaned up as well
- Cleanup authenticator method implementations
- Clean up multiple types
-
🧢 Checklist
- [ ] Documentation
- [ ] Tests
- [ ] Ready to be merged
🎫 Affected issues
📌 Resources
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| auth-docs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 10, 2024 1:52pm |
2 Ignored Deployments
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| next-auth-docs | ⬜️ Ignored (Inspect) | Visit Preview | May 10, 2024 1:52pm | |
| proxy | ⬜️ Ignored (Inspect) | Visit Preview | May 10, 2024 1:52pm |
Codecov Report
Attention: Patch coverage is 97.43590% with 1 lines in your changes are missing coverage. Please review.
Project coverage is 37.51%. Comparing base (
4bec046) to head (94285ab).
| Files | Patch % | Lines |
|---|---|---|
| packages/core/src/types.ts | 0.00% | 1 Missing :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## main #10861 +/- ##
==========================================
+ Coverage 37.48% 37.51% +0.02%
==========================================
Files 173 173
Lines 27026 26983 -43
Branches 1174 1176 +2
==========================================
- Hits 10131 10122 -9
+ Misses 16895 16861 -34
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
| Package | New capabilities | Transitives | Size | Publisher |
|---|
👍 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.