Replies: 3 comments 3 replies
-
I have this same problem and haven't had any luck finding a solution. Wondering if Google only supports it on the firebase sdk as you mention above. |
Beta Was this translation helpful? Give feedback.
-
Any news here, if |
Beta Was this translation helpful? Give feedback.
-
I think the Google Provider will only handle the authentication part for you. I just had this on my side project and the way I handled it was writing an Adapter extending the standard Prisma Adapter (Which I was using) to include more columns to host Organizations or TenantID's in this case. You can see some examples on this discussion I've opened and closed. Hope it brings some light to your needs |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Question 💬
What I'm trying to do : I want to use the Google Provider but setting the "tenantID" ( don't exist )
Why: I need a list of users and db for production and another list of allowed users for staging, my manager told me to use "multi-tenancy" ( never used before )
What I tried to do : I see that other providers do have a parameter for "tenantId" but I cannot find it in Google Provider, also the google cloud documentation gives the example using the firebase sdk which wasn't helpfull since I'm using NextAuth
https://cloud.google.com/identity-platform/docs/multi-tenancy-authentication
Can I use NextAuth for this or I need to use firebase ?
( Sorry to bother )
How to reproduce ☕️
Google Provider don't have the parameter "tenantId" but other providers do have it and Google CLoud also supports multi-tenancy
Contributing 🙌🏽
Yes, I am willing to help answer this question in a PR
Beta Was this translation helpful? Give feedback.
All reactions