Android login via Phone in Firebase causes conflict with Cloud Console

175 views
Skip to first unread message

Nikhil Sohoni

unread,
Jun 29, 2021, 7:08:49 PM6/29/21
to Firebase Google Group

The Firebase documentation states that to enable Phone login using Firebase, the SHA1 of the app needs to be added into the firebase console. I cannot do that because my apps's SHA1 + package name combo already exists in a project in Google Cloud Console.


Screen Shot 2021-06-28 at 6.55.54 PM.png

 I had a similar issue when enabling Google Sign in the app. I got around the error by whitelisting the Oauth clientID that was associated with this SHA1+package name by entering it into firebase


Screen Shot 2021-06-28 at 7.00.22 PM.png

 Is there a way to whitelist the SHA1+packagename or the Oauth Client ID to enable Phone sign in? I have found no way to do this. Google Sign In/Email Sign In works in my app but not phone. 

This is a big issue that Firebase needs to resolve! 

Anybody encounter this? How did you work around the issue? 

Please note I cannot delete the Google Cloud console project or remove the SHA1+package name from cloud console. I need it there because I have Oauth client IDs that have been created there that cannot be removed.


Kato Richardson

unread,
Jul 2, 2021, 2:47:57 PM7/2/21
to Firebase Google Group
Hello Nihkil,

You can indeed allow list OAuth clients to work with multiple projects for Google Sign In. You cannot do so for Phone Auth as far as I know.

> This is a big issue that Firebase needs to resolve! 
It's not that simple. This combination uniquely identifies apps to Android and GCP. There's really no alternative here. So you'll have to either change the package name or stick to a single project. As you can imagine, Phone Auth is particularly rigid due to abuse concerns. This is unlikely to change.


☼, Kato

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/1867237b-d382-420f-94be-54b920f5ce64n%40googlegroups.com.


--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

Reply all
Reply to author
Forward
0 new messages