firebase / firebase/firebase-js-sdk
Firebase 9 - No fromJSON method on AuthCredential
Open
api: auth
feature request
v9
- Dominant language
- TypeScript
- Stars
- 5.1k
- Forks
- 1k
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 37
Description
There does not seem to be be a way to create an AuthCredential from a JSON credential representation. The AuthCredential has a toJSON() method but not a fromJSON() method. Ideally a separate credentialFromJson() function could be provided that is separate from the AuthCredential class.
I see the EmailAuthCredential still has this method but I am unclear on the compatibility with a JSON representation that has been created from a standard AuthCredential.
This is critical for handling third party auth provider in Electron workflows.
Contributor guide
Assessment
This issue has not been assessed yet.