mirror of
https://github.com/SrIzan10/next-auth.git
synced 2026-05-01 10:55:20 +00:00
39 lines
750 B
Markdown
39 lines
750 B
Markdown
---
|
|
id: faceit
|
|
title: FACEIT
|
|
---
|
|
|
|
## Documentation
|
|
|
|
https://cdn.faceit.com/third_party/docs/FACEIT_Connect_3.0.pdf
|
|
|
|
## Configuration
|
|
|
|
https://developers.faceit.com/apps
|
|
|
|
Grant type: `Authorization Code`
|
|
|
|
Scopes to have basic infos (email, nickname, guid and avatar) : `openid`, `email`, `profile`
|
|
|
|
## Options
|
|
|
|
The **FACEIT Provider** comes with a set of default options:
|
|
|
|
- [FACEIT Provider options](https://github.com/nextauthjs/next-auth/blob/main/src/providers/faceit.js)
|
|
|
|
You can override any of the options to suit your own use case.
|
|
|
|
## Example
|
|
|
|
```js
|
|
import Providers from `next-auth/providers`
|
|
...
|
|
providers: [
|
|
Providers.FACEIT({
|
|
clientId: process.env.FACEIT_CLIENT_ID,
|
|
clientSecret: process.env.FACEIT_CLIENT_SECRET
|
|
})
|
|
]
|
|
...
|
|
```
|