voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
23 lines (14 loc) • 852 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/auth](./auth.md) > [PhoneAuthCredential](./auth.phoneauthcredential.md)
## PhoneAuthCredential class
Represents the credentials returned by [PhoneAuthProvider](./auth.phoneauthprovider.md)<!-- -->.
<b>Signature:</b>
```typescript
export declare class PhoneAuthCredential extends AuthCredential
```
<b>Extends:</b> [AuthCredential](./auth.authcredential.md)
## Methods
| Method | Modifiers | Description |
| --- | --- | --- |
| [fromJSON(json)](./auth.phoneauthcredential.fromjson.md) | <code>static</code> | Generates a phone credential based on a plain object or a JSON string. |
| [toJSON()](./auth.phoneauthcredential.tojson.md) | | Returns a JSON-serializable representation of this object. |