-
Notifications
You must be signed in to change notification settings - Fork 4k
[firebase_auth]: account linking not working #17219
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
Comments
requesting to reopen this as well 13467. reproducing this only has to make one change in firebase console authentication settings.
to
However signinWithProvider or signInWithCredentials makes entry in the firebase with email and provider info but it doesn't return into UserCredentials. |
Hi @avinashk369, the |
Thank you for considering the request. as per the doc it says, first get all the sign in methods and then ask user to use that method for login then you can link the account.
let me know if i can provide you any additional info required. |
Hi there, thank you for the information @avinashk369 can I just confirm I am understanding the issue correctly? So the error "account-exist-with-different-credential" is thrown only when you use a Google provider with an existing account or is the Google account the first one registered then any other provider fetches the error? If what you described is true that is definitely odd and I am happy to investigate it 😄 . |
Is your issue related to this one? #17160 Because if so, we have a fix out. The user here was using google-sign in |
indeed its pretty weird that "account-exist-with-different-credential" is thrown only when first provider is google and you use other provider like twitter, facebook or email after that. moreover if your first provider is twitter, facbook or email and you use google then you don't get this "account-exist-with-different-credential" and in this case account linking doesn't requires any additional changes. it works seamlessly and automatically. please also consider the following one as well.
|
We should have the PR I mentioned earlier merged at some point soon, when it is merged I can let you know and would like to know if it resolves your issue. |
Is there an existing issue for this?
Which plugins are affected?
Auth
Which platforms are affected?
Android, iOS
Description
in my flutter application i have following auth providers for login
account linking is enabled in firebase authentication setting.
Expectation is to link providers to single account but actually getting account-exists-with-different-credential. surprisingly these is a case when it works as well.
working case -
not working case -
account-exists-with-different-credential.
Expecting account linking handling seamlessly and automatically or should provide an option to link account manually even when user is not logged in.
Reproducing the issue
google sign in
twitter log in
i have twitter app properly set up and i am also able to get user email post authorisation from twitter
Firebase Core version
3.6.0
Flutter Version
3.27.4
Relevant Log Output
Flutter dependencies
Expand
Flutter dependencies
snippetAdditional context and comments
No response
The text was updated successfully, but these errors were encountered: