-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add multitenancy support #18
Comments
Thanks for the clarification and example implementation here. That does seem relatively straightforward (though I'm sure the time it takes me to setup a multi-tenant application so I can test this will be the longest part 😄). |
Hopefully, you'll type fast, hehe. |
Hi @philnash, any updates? |
I have returned to this repo for some work, but I haven't had the chance to check in on multi-tenancy stuff just yet. I will try to put aside some time next week to take a look. Thanks for your patience @elhe26. |
Thanks, @philnash. |
Hey @philnash, any updates? |
Hey, @philnash, Following up on this. Any updates? |
I was very disappointed at the time. But I’m doing well now with a new job and new things to work on. Thanks @elhe26 🙂 |
Hey @elhe26, I'm not actively adding any updates to the repo but I'll definitely take a look into adding multitenancy support. |
Hi,
As the title implies, adding multitenancy support would be an excellent addition to the extension.
Cloud functions have access to the admin sdk, so this won't cause any complex implementation.
tenantId
variable as optional (leave it empty).The actual implementation is as follows:
Caveats:
tenantId
needs to be created (useadmin.auth().tenantManager().createTenant
)admin.auth().tenantManager().authForTenant(tenantId).createUser
)Regards,
Edit:
Created issue as per github comment , suggested by @philnash
The text was updated successfully, but these errors were encountered: