Created
December 29, 2019 00:03
-
-
Save hiranya911/011886f8128cc0b736781905ae8dee50 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Specify the unique ID of the tenant to authenticate. | |
firebase.auth().tenantId = 'TENANT_ID1'; | |
// Usual Firebase sign-in logic. User will be authenticated | |
// with tenant-specific identity providers. | |
firebase.auth().signInWithEmailAndPassword(email, password) | |
.then((result) => { | |
const user = result.user; | |
// user.tenantId is set to 'TENANT_ID1'. | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment