Skip to content

Commit

Permalink
doc for patreon provider (nextauthjs#190)
Browse files Browse the repository at this point in the history
* doc for patreon provider

* Update patreon.md

Co-authored-by: Balázs Orbán <[email protected]>
  • Loading branch information
Tetedeiench and balazsorban44 authored Jan 10, 2022
1 parent d51f3cb commit 6445c48
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions docs/providers/patreon.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
id: patreon
title: Patreon
---

## Documentation

https://docs.patreon.com/#apiv2-oauth

## Configuration

:::tip
Create a API v2 client on [Patreon Platform](https://www.patreon.com/portal/registration/register-clients)
:::

## Options

The **Patreon Provider** comes with a set of default options:

- [Patreon Provider options](https://github.com/nextauthjs/next-auth/blob/main/src/providers/patreon.ts)

You can override any of the options to suit your own use case.

## Example

```js
import PatreonProvider from "next-auth/providers/patreon";
...
providers: [
PatreonProvider({
clientId: process.env.PATREON_ID,
clientSecret: process.env.PATREON_SECRET,
}))
]
...
```

:::note
Make sure you use the scopes defined in [ApiV2](https://docs.patreon.com/#scopes)
:::

0 comments on commit 6445c48

Please sign in to comment.