<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/auth-types](./auth-types.md) &gt; [PhoneAuthCredential](./auth-types.phoneauthcredential.md)

## PhoneAuthCredential class

Interface that represents the credentials returned by a [PhoneAuthProvider](./auth.phoneauthprovider.md)<!-- -->.

<b>Signature:</b>

```typescript
export abstract class PhoneAuthCredential extends AuthCredential 
```
<b>Extends:</b> [AuthCredential](./auth-types.authcredential.md)

## Methods

|  Method | Modifiers | Description |
|  --- | --- | --- |
|  [fromJSON(json)](./auth-types.phoneauthcredential.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.phoneauthcredential.tojson.md) |  | Returns a JSON-serializable representation of this object. |

