veritatisdoloremque
Version:
Monorepo for the Firebase JavaScript SDK
37 lines (23 loc) • 1.64 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/auth](./auth.md) > [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.
## Properties
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [email](./auth.emailauthcredential.email.md) | | string | |
| [password](./auth.emailauthcredential.password.md) | | string | |
| [tenantId](./auth.emailauthcredential.tenantid.md) | | string \| null | |
## 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. |