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
yahavf6 opened this issue
Mar 21, 2023
· 2 comments
Labels
adaptersChanges related to the core code concerning database adaptersmongodb@auth/mongodb-adaptertriageUnseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
[next-auth][error][adapter_error_createUser]
https://next-auth.js.org/errors#adapter_error_createuser Unsupported BSON version, bson types must be from bson 5.0 or later {
message: 'Unsupported BSON version, bson types must be from bson 5.0 or later',
stack: 'BSONVersionError: Unsupported BSON version, bson types must be from bson 5.0 or later\n' +
How to reproduce
Just copy and paste the example from the docs
Expected behavior
To work
The text was updated successfully, but these errors were encountered:
yahavf6
added
adapters
Changes related to the core code concerning database adapters
triage
Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
labels
Mar 21, 2023
I have the same error with the latest combination of mongoose, next-auth, next-auth/email-provder, and mongodb-adapter:
[next-auth][error][adapter_error_createVerificationToken]
https://next-auth.js.org/errors#adapter_error_createverificationtoken Unsupported BSON version, bson types must be from bson 6.x.x {
message: 'Unsupported BSON version, bson types must be from bson 6.x.x',
It feels somewhat unsatisfying to downgrade to an old mongodb version to have this problem fixed, so maybe the adapter could be upgraded to include a newer mongodb version? Thanks in advance
(sorry for commenting on an old and closed issue, but creating a new ticket is close to impossible without investing serious amounts of time to set up a reproduction repo for this issue, which should be easily understandable by anyone with enough insight -> for reference: #12389 )
adaptersChanges related to the core code concerning database adaptersmongodb@auth/mongodb-adaptertriageUnseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
Adapter type
@next-auth/mongodb-adapter
Environment
System:
OS: macOS 13.2.1
CPU: (8) x64 Intel(R) Core(TM) i7-1068NG7 CPU @ 2.30GHz
Memory: 1.80 GB / 32.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.18.0 - ~/.nvm/versions/node/v16.18.0/bin/node
Yarn: 1.22.19 - ~/WebstormProjects/intail-mono/node_modules/.bin/yarn
npm: 8.19.2 - ~/.nvm/versions/node/v16.18.0/bin/npm
Watchman: 2023.03.13.00 - /usr/local/bin/watchman
Browsers:
Chrome: 111.0.5563.64
Safari: 16.3
Reproduction URL
http://localhost:3000
Describe the issue
I have this issue when trying to use the adapter:
How to reproduce
Just copy and paste the example from the docs
Expected behavior
To work
The text was updated successfully, but these errors were encountered: