Hi there!
ContextWe have an app already published in Play Store that implements Google Sign In, so it is backed by a Google Cloud Platform ("GCP" from now on) project.
We have rewritten that app from scratch, with a new Firebase project as backend (we didn't create it by importing the old GCP project).
We have a Firebase Function trigger on 'user.create' with a lot of important logic that needs to be executed for both our old and new users (we don't mind if this means our old users will be asked to sign-in again).
IssueWhen we add the production SHA-1 key of our app to the Firebase console (to enable Google Sign In), an error about package name and SHA-1 pair uniqueness is shown.
We understood the error and we have read the support page (
https://support.google.com/firebase/answer/6401008) linked by it, the problem is: we don't know if any of the suggested solutions suits our goals.
Suggested solution #1: delete the Firebase project and create a new one by importing the old GCP project and adding Firebase to it.
Questions about #1:
- our old users will be ported to the Firebase project or they will need to sign-in again?
- if they are ported, they will appear in Authentication section as well?
- if they are ported, the Firebase Function 'user.create' trigger will be invoked for all of them during/after the porting?
Suggested solution #2: in the new Firebase project, whitelist the OAuth 2.0 client ID of the old GCP project
Questions about #2:
- what does this process do?
- will old users be asked to sign-in again?
- will new users be able to sign-in?
- will both our old and new users appear in Authentication and trigger 'user.create' Firebase Function?
I know it's a lot, but I tried to be as clear as possible about the doubts my team and I have.
Thanks, Michele.