Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auth/account-exists-with-different-credential issue #2156

Closed
ForbiddenEra opened this issue Sep 6, 2019 · 2 comments
Closed

auth/account-exists-with-different-credential issue #2156

ForbiddenEra opened this issue Sep 6, 2019 · 2 comments

Comments

@ForbiddenEra
Copy link

  • Operating System version: Win 10 1809/Ubuntu 18.04
  • Browser version: FF Current/Chrome current
  • Firebase SDK version: Current -> pulled in last 24h
  • Firebase Product: Auth

Steps to reproduce:
-> clear login for my app from my google account, clear login for my app from my facebook account
-> make sure I'm logged out with firebase
-> do a facebook sign in
--> my account is shown as a facebook account in the firebase console
-> sign out
-> do a google sign in
--> my account is now shown as a google account in firebase console, no error

Now, if I do the reverse (start with google then try to use facebook):
-> clear login for my app from my google account, clear login for my app from my facebook account
-> make sure I'm logged out with firebase
-> do a google sign in
--> my account is shown as a google account in the firebase console
-> sign out
-> do a facebook sign in
--> I get error auth/account-exists-with-different-credential as expected.

I would expect to get the same error in both situations, thus I can provide the user with the option to link the other provider's account. In this situation, if they sign in with facebook first, then sign in with google, then try and sign in with facebook again it will give an error.

https://www.youtube.com/watch?v=DUj6yNXCh0A

@bojeil-google
Copy link
Contributor

This is a duplicate of #1883

@ForbiddenEra
Copy link
Author

This is a duplicate of #1883

Thanks -> should have searched better I guess.

@firebase firebase locked and limited conversation to collaborators Oct 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants