Open Bullfrog1234 opened 3 years ago
Hi @Bullfrog1234, thanks for filing this! We are unable to promise any timeline for this, but if others also have this issue, adding a +1 on this issue can help us prioritize adding this to the roadmap.
(Googler-only internal tracking bug: b/191680800)
Hi @rosalyntan, understand this may not be fixed in the near term. Just wanted to get it on the roadmap for sometime.
When using the emulators signInWithPopup with two different providers (e.g. google and facebook) with the same email addresses does not raise the auth/account-exists-with-different-credential error .
The result that is returned is both providers linked to the same account. This does not emulate the real environment and makes testing code associated with linking accounts impossible in the emualtors.
Note: auth/account-exists-with-different-credential
should be thrown only if account is linked to Google and user wants to sing in with Facebook because other way around Google overwrites Facebook provider for security reasons.
However if two providers are trusted like: Google and Apple then The result that is returned is both providers linked to the same account
this is the expected behavior.
[REQUIRED] Describe your environment
[REQUIRED] Describe the problem
When using the emulators
signInWithPopup
with two different providers (e.g. google and facebook) with the same email addresses does not raise theauth/account-exists-with-different-credential
error .The result that is returned is both providers linked to the same account. This does not emulate the real environment and makes testing code associated with linking accounts impossible in the emualtors.
Could also be an issue with
signInWithRedirect
I have not checked.Note:
createUserWithEmailAndPassword
works as expectedSteps to reproduce:
signInWithPopup
with any providersignInWithPopup
making sure to use the same accountauth/account-exists-with-different-credential
Does not arrive.Note: No errors are raised in this process to pass on.