'Change tenant id runtime
I'm using firebase in combination with google identity platform with multi-tenancy. The tenant id is provided as injection token by angularfire, and can be set in the providers section of a module.
But i want to update this value based on the tenant the user selects in the login screen. I cant seem to find the correct way of doing that.
Anyone knows if that's possible and how?
Solution 1:[1]
Found it!
import firebase from 'firebase/compat/app';
firebase.auth().tenantId = 'other-tenant-id'
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Albert Hoekstra |
