Dynamic MongoDB name for user auth #3508
Unanswered
AleksandrukTad
asked this question in
Help
Replies: 1 comment
-
If you have a way of identifying which domain the request is coming from, you can use advanced initialization and intercept the request: https://next-auth.js.org/configuration/initialization#advanced-initialization |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am trying to build multi tenant system based on the subdomain so: companyA..com / companyB..com etc.
I would like to have users in each database. Is there a way to dynamically change in which DB NextAuth is creating user tables?
Beta Was this translation helpful? Give feedback.
All reactions