this only happens when user uses same gmailid for both FB and Google
SCENARIO 1:
User first connects with FB using (Eg: a...@gmail.com
) and after popup challenge the provider FB is added to User
user on the next visit click on connect with Google using (Eg: a...@gmail.com
) then users provider is replaced with Google.
SCENARIO 2:
User first connects with Google using (Eg: a...@gmail.com
) and after popup challenge the provider Google is added to User
user on the next visit click on connect with FB using (Eg: a...@gmail.com
) then an error is thrown back auth/account-exists-with-different-credential
The firebase documentation says in this scenario to show user a continue option with Google upon user acceptance, user is linked with the FB credential then user providers are shown as both FB and Google.
Scenrio2 seems good as we are linking both social to same user
but in the case of SCENARIO 1, there is no error thrown so the user provider is replaced by Google
this is inconsistent experience for our app users.
Can any one advise if I am missing anything obvious.
Thanks,
Vinodh