Solving error code:12500, Google Sign-in auth

- 3 mins

jekyll

Errors:bangbang: They suck right? I was building an Android application with Firebase that uses Google Sign-in to perform authentication and on testing it out, I got this error code:12500. Oh well, I headed out to the documentation to seek for help and what I saw was not really helpful:

Screenshot from Google Developers Documentation

Note:


:wrench: How to Fix

1. Check if Google Sign-in is enabled on Firebase

Head over to your Firebase console, under Authentication » Sign-in method, check if you enabled Google Sign-in for your application just like the image below if not, enable it.

After this, rebuild and run your application to check if Google Sign-in works now. If it doesn’t, proceed to the next step.

2. Check if project support email is configured

Still in your Firebase console, under Authentication » Sign-in method, and having enabled Google Sign-in, select the Google Sign-in option. Check to see if there is a project support email added to the project if not, add one and save.

After this, rebuild and run your application to check if Google Sign-in works now. If it doesn’t, proceed to the next step.

3. Check if authorized domains in the Google Cloud Platform console matches the ones in your Firebase console

Still in your Firebase console, under Authentication » Sign-in method, with Google Sign-in enabled, scroll down to the Authorized Domain section just below Sign-in providers and note down the authorized domains.

In a new tab, open up Google Cloud Platform and select your Firebase project name.

If your project is not being displayed, search for it using search bar up above

With your project selected, on the left nav bar, under Credentials » OAuth consent screen, scroll down to the authorized domain section. Excluding localhost in the authorized domains in your Firebase console, make sure the authorized domains in the Firebase console and Google Cloud Platform console match if not, copy the domains in the Firebase console and add to the authorized domains for your project in the Google Cloud Platform console.

Most times, the second domain in the Google Cloud Platform is always made short to read ‘web.app’. It is the same as the domain ‘project_name.web.app’ in your Firebase console

After this, rebuild and run your application to check if Google Sign-in works now. If it doesn’t, proceed to the next step.

4. Add an application logo to your project in the Google Cloud Platform console

In your Google Cloud Platform, with your project selected, on the left nav bar, under Credentials » OAuth consent screen, scroll down to the application logo section, add the application logo and save.

Rebuild and run your application to check if Google Sign-in now works. After these 4 steps, incase you’re still experiencing the same error:12500, do send me a DM on Twitter. Thank you for your time :thumbsup:

Mayokun Adeniyi

Mayokun Adeniyi

Android Developer

comments powered by Disqus
rss facebook twitter github gitlab youtube mail spotify lastfm instagram linkedin google google-plus pinterest medium vimeo stackoverflow reddit quora quora