{"action":"opened","issue":{"url":"https://api.github.com/repos/firebase/quickstart-js/issues/278","repository_url":"https://api.github.com/repos/firebase/quickstart-js","labels_url":"https://api.github.com/repos/firebase/quickstart-js/issues/278/labels{/name}","comments_url":"https://api.github.com/repos/firebase/quickstart-js/issues/278/comments","events_url":"https://api.github.com/repos/firebase/quickstart-js/issues/278/events","html_url":"https://github.com/firebase/quickstart-js/issues/278","id":392151180,"node_id":"MDU6SXNzdWUzOTIxNTExODA=","number":278,"title":"Facing problem at linking multiple auth providers in firebase","user":{"login":"AKHIL501","id":42740475,"node_id":"MDQ6VXNlcjQyNzQwNDc1","avatar_url":"https://avatars0.githubusercontent.com/u/42740475?v=4","gravatar_id":"","url":"https://api.github.com/users/AKHIL501","html_url":"https://github.com/AKHIL501","followers_url":"https://api.github.com/users/AKHIL501/followers","following_url":"https://api.github.com/users/AKHIL501/following{/other_user}","gists_url":"https://api.github.com/users/AKHIL501/gists{/gist_id}","starred_url":"https://api.github.com/users/AKHIL501/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AKHIL501/subscriptions","organizations_url":"https://api.github.com/users/AKHIL501/orgs","repos_url":"https://api.github.com/users/AKHIL501/repos","events_url":"https://api.github.com/users/AKHIL501/events{/privacy}","received_events_url":"https://api.github.com/users/AKHIL501/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-18T13:14:07Z","updated_at":"2018-12-18T13:14:07Z","closed_at":null,"author_association":"NONE","body":"SCENARIO 1:  \r\nUser first connects with FB using (Eg: a...@gmail.com) and after popup challenge the provider FB is added to User\r\nuser on the next visit click on connect with Google  using (Eg: a...@gmail.com)  then users provider is replaced with Google.\r\n\r\nSCENARIO 2:  \r\nUser first connects with Google using (Eg: a...@gmail.com) and after popup challenge the provider Google is added to User\r\nuser 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 \r\nThe 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.\r\nScenrio2 seems good as we are linking both social to same user\r\n\r\nbut in the case of SCENARIO 1, there is no error thrown so the user provider is replaced by Google\r\nthis is inconsistent experience for our app users."}}
{"actor":{"display_login":"AKHIL501"}}