<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/auth](./auth.md) &gt; [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. |

