In a web app we are using Firebase Auth to manage logins and (basic) account creation. When using the Google Login option with the user active with more than one Google account, the user is shown the Google Account Chooser to choose which of the accounts to use on our site. Its heading looks something like this:
Choose an account
to continue to mydomain.com
In my web app's case, instead of showing mydomain.com, it is showing <firebase-project-id>.firebaseapp.com.
What do I have to do to change is so that the account chooser popup shows mydomain.com?
If you own another domain, you can add it to your Google Workspace or Cloud Identity account. For example, you might manage multiple businesses or brands, each with their own domain.
If you want to customize that to: Choose an account to continue to: https://auth.example.com You would need to follow the following instructions:
Finally, you need to substitute that domain as your authDomain
in the JS client call:
var config = {
apiKey: "...",
authDomain: "auth.example.com",
...
};
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With