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

i have an issue using linkWithCredential(user , AuthCredential) #248

Open
ayoubbouguettaya opened this issue Oct 17, 2021 · 0 comments
Open

Comments

@ayoubbouguettaya
Copy link

Firebase Auth JS V9

Description :

in this line of snippet code the documentation shows calling linkWithCredential(user , OAuthCredential) instead of linkWithCredential(user , AuthCredential)
the incompatibility between AuthCredential and OAuthCredential produce an error of
credential._linkToIdToken is not a function . i could'nt find any solution to link and account when 'auth/account-exists-with-different-credential' produced . since it's not clear how to handle this case in V9 without produces the previous Error

return linkWithCredential(prevUser, credential)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant