firebase / firebase/snippets-web
i have an issue using linkWithCredential(user , AuthCredential)
- Dominant language
- JavaScript
- Stars
- 802
- Forks
- 285
- PR merge metrics
- No merged PRs in 30d
Description
## 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
https://github.com/firebase/snippets-web/blob/fdc51dd76f7c8f31d107b2dc27100c28e0318431/snippets/auth-next/link-multiple-accounts/auth_merge_accounts.js#L35
Contributor guide
Assessment
This issue has not been assessed yet.