veritatisdoloremque
Version:
Monorepo for the Firebase JavaScript SDK
23 lines (13 loc) • 592 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/auth](./auth.md) > [OAuthProvider](./auth.oauthprovider.md) > [credentialFromJSON](./auth.oauthprovider.credentialfromjson.md)
## OAuthProvider.credentialFromJSON() method
<b>Signature:</b>
```typescript
static credentialFromJSON(json: object | string): OAuthCredential;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| json | object \| string | |
<b>Returns:</b>
[OAuthCredential](./auth.oauthcredential.md)