firebase / firebase/quickstart-js

Facing problem at linking multiple auth providers in firebase

Open
#278 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
5.4k
Forks
3.7k
Avg merge
2d 13h
Merged PRs (30d)
6

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.