Skip to content

[Firebase Auth] didn't get email, credential in case of email-already-in-use error code #5508

@mabujaber

Description

@mabujaber

Bug report

Describe the bug
in case of user already exist with a different provider will get the error code email-already-in-use and in the FirebaseAuthException has these values email, credential ...etc but when I tried to access them but unfortunately all the values are null.

Why need these value, I want to link the email trying to login with one of the third-party sign-in such as Facebook, apple ...etc instead of having one account for multiple providers.

For instance, we have two methods of sign-in (Facebook and Apple) when I sign-in using Facebook and try to use the same email account in apple sign-in will get the above error email-already-in-use but unable to link them due to unavalibility for the above fields

Steps to reproduce

1- Sign in with facebook
2- signout
3- sign in with apple that has the same email address you signed in step 1
4- you will get the error email-already-in-use without providing email, credential ...etc

Expected behavior

I should get the same error with providing me the fields (email, credential ...etc)

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions