veritatisdoloremque
Version:
Monorepo for the Firebase JavaScript SDK
34 lines (21 loc) • 1.68 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/auth-types](./auth-types.md) > [OAuthCredential](./auth-types.oauthcredential.md)
## OAuthCredential class
Interface that represents the OAuth credentials returned by an [OAuthProvider](./auth.oauthprovider.md)<!-- -->.
<b>Signature:</b>
```typescript
export abstract class OAuthCredential extends AuthCredential
```
<b>Extends:</b> [AuthCredential](./auth-types.authcredential.md)
## Remarks
Implementations specify the details about each auth provider's credential requirements.
## Properties
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [accessToken](./auth-types.oauthcredential.accesstoken.md) | | string | The OAuth access token associated with the credential if it belongs to an [OAuthProvider](./auth.oauthprovider.md)<!-- -->, such as <code>facebook.com</code>, <code>twitter.com</code>, etc. |
| [idToken](./auth-types.oauthcredential.idtoken.md) | | string | The OAuth ID token associated with the credential if it belongs to an OIDC provider, such as <code>google.com</code>. |
| [secret](./auth-types.oauthcredential.secret.md) | | string | The OAuth access token secret associated with the credential if it belongs to an OAuth 1.0 provider, such as <code>twitter.com</code>. |
## Methods
| Method | Modifiers | Description |
| --- | --- | --- |
| [fromJSON(json)](./auth-types.oauthcredential.fromjson.md) | <code>static</code> | Static method to deserialize a JSON representation of an object into an [AuthCredential](./auth-types.authcredential.md)<!-- -->. |