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