You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
huksley opened this issue
May 7, 2024
· 0 comments
Labels
adaptersChanges related to the core code concerning database adaptersbugSomething isn't workingtriageUnseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
MongoDB new native driver v6 works differently,
in particular db.collection.findOneAndDelete method returns a different output.
The new @authjs/mongodb-adapter handles this properly (and properly declares MongoDB as peer dependency) so this code needs to be backported to next-auth v4 branch and new adapter released.
How to reproduce
Use MongoDB nodejs package v6.x with next-auth and @next-auth/mongodb-adapter
Try email provider auth + JWT - it does not work
Expected behavior
Updated MongoDB adapter which is compatible with actively maintained MongoDB driver.
The text was updated successfully, but these errors were encountered:
huksley
added
adapters
Changes related to the core code concerning database adapters
bug
Something isn't working
triage
Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
labels
May 7, 2024
adaptersChanges related to the core code concerning database adaptersbugSomething isn't workingtriageUnseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
Adapter type
@auth/mongodb-adapter
Environment
Reproduction URL
https://github.com/huksley/next-auth-v4-mongodb-6
Describe the issue
The MongoDB adapter provided in v4 branch is outdated and actually version 1.1.1 while version on NPMJS is 1.1.3 https://github.com/nextauthjs/next-auth/tree/v4
MongoDB new native driver v6 works differently,
in particular db.collection.findOneAndDelete method returns a different output.
The new
@authjs/mongodb-adapter
handles this properly (and properly declares MongoDB as peer dependency) so this code needs to be backported to next-auth v4 branch and new adapter released.How to reproduce
@next-auth/mongodb-adapter
Expected behavior
Updated MongoDB adapter which is compatible with actively maintained MongoDB driver.
The text was updated successfully, but these errors were encountered: