1
votes

Is it possible to use Google Sign In with a web client id, that belongs to a different google cloud project than the one that is used for firebase?

We have two cloud projects

  • project-main

    Used for most of our own infrastructure.

  • project-mobile

    Used for firebase and mobile (android).

I'd like configure Google Sign In to use a web client id created for project-main in order to authorize android clients using GoogleSignInOptions.Builder.requestIdToken(String) at our backend. The app's gms Gradle plugin is pointing to project-mobile by using the downloaded google-services.json from firebase. How can this be done?

I found a post titled Working with multiple Firebase projects in an Android app. Unfortunately it did not solve the issue for me. The client fails to authorize at google.

PS: When using the default web client id, authorization works. But this is not what I want - as the default client id is created for project-mobile.

1

1 Answers

0
votes

Fixed it by removing the SHA fingerprint from the firebase console config.