Can I have multiple OAuth 2.0 Client IDs for Android

114 Views Asked by At

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

1

There are 1 best solutions below

1
On BEST ANSWER

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.