You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that obtaining the email address from signInWithPopup prior to authentication is not feasible. This limitation necessitates a cumbersome workflow where users must first enter their email address in a field, which then allows for the correct tenant to be set in auth.tenant. This setup can lead to a frustrating user experience, as it introduces unnecessary steps. Please refer to the Proof of Concept (PoC) for further details.
Steps and code to reproduce issue
consthandleGoogle=async()=>{auth.useDeviceLanguage();try{// The auth need to be assigned the proper tenantId or this would fail, however, we can only fetch the tenant Id once the user has picked his preferred account...constuserCredential=awaitsignInWithPopup(auth,newGoogleAuthProvider());const{ isNewUser }=getAdditionalUserInfo(userCredential);if(isNewUser){awaitauth.currentUser.delete();thrownewError(`${email} is not registered.`);}else{---SNIP---}}catch(error){---SNIP----}};
The text was updated successfully, but these errors were encountered:
Operating System
Windows 11 Pro
Environment (if applicable)
Microsoft Edge, React
Firebase SDK Version
11.0.1
Firebase SDK Product(s)
Auth
Project Tooling
React app with MUI.
Detailed Problem Description
It appears that obtaining the
email address
fromsignInWithPopup
prior to authentication is not feasible. This limitation necessitates a cumbersome workflow where users must first enter theiremail address
in a field, which then allows for the correct tenant to be set inauth.tenant
. This setup can lead to a frustrating user experience, as it introduces unnecessary steps. Please refer to the Proof of Concept (PoC) for further details.Steps and code to reproduce issue
The text was updated successfully, but these errors were encountered: