Home > @firebase/auth > EmailAuthCredential
EmailAuthCredential class
Interface that represents the credentials returned by EmailAuthProvider for ProviderId.PASSWORD
Signature:
export declare class EmailAuthCredential extends AuthCredential
Extends: AuthCredential
Description
Covers both SignInMethod.EMAIL_PASSWORD and SignInMethod.EMAIL_LINK.
The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the EmailAuthCredential
class.
Methods
Method | Modifiers | Description |
---|---|---|
fromJSON(json) | static |
Static method to deserialize a JSON representation of an object into an AuthCredential. |
toJSON() | Returns a JSON-serializable representation of this object. |