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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-01-19 UTC."],[],[],null,["# EmailAuthCredential class\n\nInterface 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-------\n\n| Method | Modifiers | Description |\n|-----------------------------------------------------------------------------|-----------|------------------------------------------------------------------------------------------------------------------------------------------|\n| [fromJSON(json)](./auth.emailauthcredential.md#emailauthcredentialfromjson) | `static` | Static method to deserialize a JSON representation of an object into an [AuthCredential](./auth.authcredential.md#authcredential_class). |\n| [toJSON()](./auth.emailauthcredential.md#emailauthcredentialtojson) | | Returns a JSON-serializable representation of this object. |\n\nEmailAuthCredential.fromJSON()\n------------------------------\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\n#### Parameters\n\n| Parameter | Type | Description |\n|-----------|------------------|-------------------------------------------------------------------------------------------------------------------------------|\n| json | object \\| string | Either `object` or the stringified representation of the object. When string is provided, `JSON.parse` would be called first. |\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----------------------------\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."]]