<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/auth](./auth.md) &gt; [EmailAuthCredential](./auth.emailauthcredential.md)

## EmailAuthCredential class

Interface that represents the credentials returned by [EmailAuthProvider](./auth.emailauthprovider.md) for [ProviderId.PASSWORD](./auth.providerid.password.md)

<b>Signature:</b>

```typescript
export declare class EmailAuthCredential extends AuthCredential 
```
<b>Extends:</b> [AuthCredential](./auth.authcredential.md)

## Remarks

Covers both [SignInMethod.EMAIL\_PASSWORD](./auth.signinmethod.email_password.md) and [SignInMethod.EMAIL\_LINK](./auth.signinmethod.email_link.md)<!-- -->.

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)](./auth.emailauthcredential.fromjson.md) | <code>static</code> | Static method to deserialize a JSON representation of an object into an [AuthCredential](./auth.authcredential.md)<!-- -->. |
|  [toJSON()](./auth.emailauthcredential.tojson.md) |  | Returns a JSON-serializable representation of this object. |

