firebasegoogle-cloud-platformfirebase-authenticationgoogle-signingoogle-cloud-console

Can I have multiple OAuth 2.0 Client IDs for Android


Trying to implement Google sign-in using Firebase and Google Sign-in package in Flutter.

In my Google cloud console, there are 2 options for OAuth 2.0 Client IDs for the Android type.

The two options use a different SHA-1 key.

Is this a problem in any way for my implementation of Google sign-in?

multiple ouath2 client ids example


Solution

  • There is no problem with having multiple OAuth 2.0 Client IDs. However, if you need to use such an ID in your project, always make sure to use the one with the correct SHA-1 key.

    One thing to note is that for implementing Firebase sign-in with Google, you need to use the Web client ID and not the Android client ID.