voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
25 lines (14 loc) • 631 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/auth](./auth.md) > [GithubAuthProvider](./auth.githubauthprovider.md) > [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)