Change domain name on Google sign-in consent screen

This note is about changing the app name, precisely domain name on Google sign-in consent page.


This whole process is taken from Google Firebase Docs

So below is what I've followed for Events Counter project using Netlify as my hosting provider:

  1. Added a CNAME in domain settings of Netlify.

    Key Value
    Type CNAME
    Value (This is your current redirect URL)
  2. Authorize custom domain in firebase.

    It can couple of hours to finish the verification as your new domain is still propagating across the world DNS servers

  3. Next step is to use our new domain in place of old redirect URL being shown at Google sign-in consent page. For this, we need to mention it at authorized redirect URLs.

    • Go to (make sure you have selected the right application on top)
    • Edit Web client under OAuth 2.0 Client IDs
    • and replace the current redirect URL with the new subdomain suffixed with /__/auth/handler, in my case it was
  4. Last step is to update Firebase configuration in web application code. Update authDomain with the new domain
  5. Make sure to update applications on identity providers you are using. For example, I had to update my GitHub app with as redirect URL. Otherwise you will see error like Unable to process request due to missing initial state. when trying to you those provider.

That is it!


If you think this is helpful 🎈
Don't keep it to yourself 🙊

Share it with your lovely followers at twitter 🗽

lets connect viatwitter