Reputation: 1556
I am using Firebase UI to implement user authentication on my Android app but I'm facing a problem. Here is the scenario:
unknown error
and cannot sign in with email address. Everything works fine with Google account, but sign in with email is not working anymore.I tried to use web client to find the actual error, when trying to sign in using email address I get the following error:
{
"code":"auth/wrong-password",
"message":"The password is invalid or the user does not have a password."
}
Upvotes: 1
Views: 1878
Reputation: 138824
This is happening because when the user signs in the second time, with a Google account, it overrides the data in the Firebase account. This means that Google credentials remain the default ones. This is happening for an obvious reason, a Google account is a trusted source and that's why we have this behavior.
To solve your problem, you need to link those 2 accounts in a single one, based on that email address.
Upvotes: 2