veritatisdoloremque
Version:
Monorepo for the Firebase JavaScript SDK
33 lines (20 loc) • 1.3 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/auth-types](./auth-types.md) > [AuthCredential](./auth-types.authcredential.md)
## AuthCredential class
Interface that represents the credentials returned by an [AuthProvider](./auth-types.authprovider.md)<!-- -->.
<b>Signature:</b>
```typescript
export abstract class AuthCredential
```
## Remarks
Implementations specify the details about each auth provider's credential requirements.
## Properties
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [providerId](./auth-types.authcredential.providerid.md) | | string | The authentication provider ID for the credential. |
| [signInMethod](./auth-types.authcredential.signinmethod.md) | | string | The authentication sign in method for the credential. |
## Methods
| Method | Modifiers | Description |
| --- | --- | --- |
| [fromJSON(json)](./auth-types.authcredential.fromjson.md) | <code>static</code> | Static method to deserialize a JSON representation of an object into an [AuthCredential](./auth-types.authcredential.md)<!-- -->. |
| [toJSON()](./auth-types.authcredential.tojson.md) | | Returns a JSON-serializable representation of this object. |