firebase / FirebaseUI-Android

Optimized UI components for Firebase
https://firebaseopensource.com/projects/firebase/firebaseui-android/
Apache License 2.0
4.63k stars 1.84k forks source link

Account linking works for one database but not the other, same settings. #989

Open xsorifc28 opened 7 years ago

xsorifc28 commented 7 years ago

I have a debug and release firebase project for one of my apps. I use login with google/fb/email. In one of the firebase projects, when I sign in with google + fb, i see that auth joins the accounts (debug). However, in the other database (release), this does not happen. Both projects have "One account per email address" enabled. The release firebase project was imported as a legacy firebase project, this is the only reason I though that the behavior could be different.

I can privately provide names of the projects if someone on the team would like to look into it.

samtstern commented 6 years ago

@xsorifc28 we will need more information to debug:

xsorifc28 commented 6 years ago

@samtstern

Release database (again, this database was originally imported from firebase.com, some UIDs are in provider:number format.

2017-10-23 22_13_41-culturecloud authentication firebase console

Debug database: 2017-10-23 22_13_59-culturecloudbeta authentication firebase console

The emails are the same, just not sure why they are not joined in the release project.

samtstern commented 6 years ago

@xsorifc28 ok so is this what you are trying to do:

?

xsorifc28 commented 6 years ago

Yes. Change the first bullet to "sign up with email/Facebook/Google"

samtstern commented 6 years ago

@xsorifc28 do you see the same UI flow in each app? You should see one of the "welcome back" screens and then be prompted to sign in with the original method.

In general any information you could provide here would be helpful. Logging output, a description of where the UI fails, etc.

It's really not clear that this is a FirebaseUI issue at all based on the amount of information provided.

xsorifc28 commented 6 years ago

Yes, UI flow is same - infact the app is the same, just different package name. The logs just show "notifying about auth state listener". No information about linking. I also am beginning to believe that this is not a Firebase UI issue. Though, could you point me to where the linking happens in FirebaseUI? I'd like to debug that part of the code to see if I can get any information out of it.