DEV Community

Shun Yamada
Shun Yamada

Posted on

3 3

Use an original domain when authenticating with Google in Firebase

Not major problems but I have spent a little bit on solving this. So let me leave how to solve it.

The issue is to remain ****.firebaseapp.com when Google authentication built-in FIrebase.

Alt Text

My friend pointed out this. But I didn't care it because it was not too critical and it seems to be complicated to fix it out. But not difficult to solve. You can see this in the official document here.

Two points you have to change.

1) Authorized redirect URIs

Set up in Firebase, it's easy. But you have to check Google Cloud Platform when you solve this issue. See Credentials > Oauth 2.0 Client IDs. WebClient generated.

Update to an original domain in authorized redirect URIs.

Alt Text

2) Firebase settings

Change authDomain section on the app to an original domain.

Done!

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay