Skip to content
Discussion options

You must be logged in to vote

Is this a preexisting application, or a new project you're planning to use NextAuth.js with?

If its a new project, I would recommend using the users table that is generated by the library in your adapter of choice. You can then extend the user model/schema with any additional fields you may need.

For mongo adapters, we have a mongoose based one that is built for mongodb. You could also potentially use the prisma adapter as well if you're looking for an ORM layer on top of mongodb as well, im pretty sure prisma began supporting mongo pretty well recently.

See also:
https://next-auth.js.org/adapters/mongodb
https://next-auth.js.org/adapters/prisma

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@juanbosnic
Comment options

Answer selected by juanbosnic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants