Any thoughts/idea on implementing multitenancy/team using Prisma Adapter ? #3950
Replies: 2 comments
-
As a side comment, if we are going to look into this, it has to be database/adapter agnostic. |
Beta Was this translation helpful? Give feedback.
-
I don't know if this should be in NextAuth, seems kind of out of scope. You use NextAuth to authenticate your You can just merge the schema needed from NextAuth with the one suggested by Blitz for multitenancy and you're good to go. Your |
Beta Was this translation helpful? Give feedback.
-
Question 💬
How possible is it to implement a data modeling highlighted on https://blitzjs.com/docs/multitenancy and https://blog.bullettrain.co/teams-should-be-an-mvp-feature/ using the Prisma adapter?
Snippet from the Blitz documentation
The general idea is to either use events https://next-auth.js.org/configuration/events or modify the existing Prisma provider to create the organization.
Can someone share some insights on creating something similar using next-auth.
How to reproduce ☕️
Contributing 🙌🏽
Yes, I am willing to help answer this question in a PR
Beta Was this translation helpful? Give feedback.
All reactions