EmailAuthCredential class
Stay organized with collections
Save and categorize content based on your preferences.
Interface that represents the credentials returned by EmailAuthProvider for ProviderId.PASSWORD
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.
Signature:
export declare class EmailAuthCredential extends AuthCredential
Extends: AuthCredential
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. |
EmailAuthCredential.fromJSON()
Static method to deserialize a JSON representation of an object into an AuthCredential.
Signature:
static fromJSON(json: object | string): EmailAuthCredential | null;
Parameters
Parameter |
Type |
Description |
json |
object | string |
Either object or the stringified representation of the object. When string is provided, JSON.parse would be called first. |
Returns:
EmailAuthCredential | null
If the JSON input does not represent an AuthCredential, null is returned.
EmailAuthCredential.toJSON()
Returns a JSON-serializable representation of this object.
Signature:
toJSON(): object;
Returns:
object
a JSON-serializable representation of this object.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-01-19 UTC.
[null,null,["Last updated 2024-01-19 UTC."],[],[],null,["Interface that represents the credentials returned by [EmailAuthProvider](./auth.emailauthprovider.md#emailauthprovider_class) for [ProviderId](./auth.md#providerid).PASSWORD\n\nCovers both [SignInMethod](./auth.md#signinmethod).EMAIL_PASSWORD and [SignInMethod](./auth.md#signinmethod).EMAIL_LINK.\n\nThe 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.\n\n**Signature:** \n\n export declare class EmailAuthCredential extends AuthCredential \n\n**Extends:** [AuthCredential](./auth.authcredential.md#authcredential_class)\n\nMethods\n\nEmailAuthCredential.fromJSON()\n\nStatic method to deserialize a JSON representation of an object into an [AuthCredential](./auth.authcredential.md#authcredential_class).\n\n**Signature:** \n\n static fromJSON(json: object | string): EmailAuthCredential | null;\n\nParameters\n\n**Returns:**\n\n[EmailAuthCredential](./auth.emailauthcredential.md#emailauthcredential_class) \\| null\n\nIf the JSON input does not represent an [AuthCredential](./auth.authcredential.md#authcredential_class), null is returned.\n\nEmailAuthCredential.toJSON()\n\nReturns a JSON-serializable representation of this object.\n\n**Signature:** \n\n toJSON(): object;\n\n**Returns:**\n\nobject\n\na JSON-serializable representation of this object."]]