Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/nodecg-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ NodeCG is configured via a `cfg/nodecg.js`, `cfg/nodecg.yaml`, or `cfg/nodecg.js
- `allowedIds` _Array of strings_ Which 64 bit Steam IDs to allow. Can be obtained from [https://steamid.io/](https://steamid.io/). This option is required when `login.steam.enabled = true`! [NO DEFAULT!]
- `twitch` _Object_ Contains twitch login configuration properties.
- `enabled` _Boolean_ Whether to enable Twitch authentication. [DEFAULT: `false`]
- `clientID` _String_ A Twitch application ClientID [http://twitch.tv/kraken/oauth2/clients/new](http://twitch.tv/kraken/oauth2/clients/new). This option is required when `login.twitch.enabled = true`! [NO DEFAULT!]
- `clientSecret` _String_ A Twitch application ClientSecret [http://twitch.tv/kraken/oauth2/clients/new](http://twitch.tv/kraken/oauth2/clients/new). This option is required when `login.twitch.enabled = true`! [NO DEFAULT!]
- `clientID` _String_ A Twitch application ClientID [https://dev.twitch.tv/console/apps/create](https://dev.twitch.tv/console/apps/create). This option is required when `login.twitch.enabled = true`! [NO DEFAULT!]
- `clientSecret` _String_ A Twitch application ClientSecret [https://dev.twitch.tv/console/apps/create](https://dev.twitch.tv/console/apps/create). This option is required when `login.twitch.enabled = true`! [NO DEFAULT!]
- _Note:_ Configure your Twitch OAuth credentials with a Redirect URI to `{baseURL}/login/auth/twitch`
- `scope` _String_ A space-separated string of Twitch application [permissions](https://dev.twitch.tv/docs/authentication/#scopes). [DEFAULT: `"user_read"`]
- `scope` _String_ A space-separated string of Twitch scopes [permissions](https://dev.twitch.tv/docs/authentication/#scopes). [DEFAULT: `"user:read:email"`]
- `allowedUsernames` _Array of strings_ Which Twitch usernames to allow. Either this option or `allowedIds` is required when `login.twitch.enabled = true`! [NO DEFAULT!]
- `allowedIds` _Array of strings_ Which Twitch IDs to allow. Can be obtained from [https://twitchinsights.net/checkuser](https://twitchinsights.net/checkuser). Either this option or `allowedUsernames` is required when `login.twitch.enabled = true`! [NO DEFAULT!]
- `discord` _Object_ Contains discord login configuration properties.
Expand Down Expand Up @@ -92,9 +92,9 @@ module.exports = {
},
twitch: {
enabled: true,
clientID: 'your_app_id',
clientSecret: 'your_app_key',
scope: 'user_read',
clientID: 'your_twitch_app_client_id',
clientSecret: 'your_twitch_app_client_secret',
scope: 'user:read:email',
allowedUsernames: ['some_username'],
allowedIds: ['11111111111111111', '22222222222222222'],
},
Expand Down