An OAuth2 client already exists for this package name and SHA-1 in another project

Why am I seeing this?

This error occurs if we detect that another Firebase or Google Cloud project contains an OAuth 2.0 client ID with the same package name and SHA-1 fingerprint that you specified.

When you add Firebase to an Android application in the Firebase console, we try to generate a Google OAuth 2.0 Client ID for your app, which is used to authenticate your app with some Google APIs, such as Firebase Dynamic Links and Firebase Auth sign-in methods, including Google, Phone, and Play Games.

For security reasons, every pairing of a package name and SHA-1 certificate fingerprint used to create an OAuth 2.0 client ID must be unique across all Firebase and Google Cloud projects.

What impact can this have on my application?

The following features require that you configure a unique package and SHA-1 fingerprint:

If you are not planning to use these features, there is no impact.

What can I do?

If you're not using Firebase Dynamic Links or Firebase authentication, you don't need to do anything. If you're adding an app and plan to add these features in the future, you can safely skip this step and complete it later.

If you are using one of these features, the simplest solution is to use a different package name or sign your app with a different key (see Authenticating your client for more information). This may not be appropriate for all cases, however.

Review the following possible scenarios and solutions:

Was this helpful?

How can we improve it?
16164167578947272172
true
Search Help Center
true
true
true
true
true
5054967
false
false
false
Search
Clear search
Close search
Main menu