<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/auth](./auth.md) &gt; [TwitterAuthProvider](./auth.twitterauthprovider.md) &gt; [credential](./auth.twitterauthprovider.credential.md)

## TwitterAuthProvider.credential() method

Creates a credential for Twitter.

<b>Signature:</b>

```typescript
static credential(token: string, secret: string): OAuthCredential;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  token | string | Twitter access token. |
|  secret | string | Twitter secret. |

<b>Returns:</b>

[OAuthCredential](./auth.oauthcredential.md)

