From f43f278b267e938ca2cf49f24f8eb791cde39b40 Mon Sep 17 00:00:00 2001 From: LukasW1337 <33436545+LukasW1337@users.noreply.github.com> Date: Tue, 3 Sep 2024 20:23:33 +0200 Subject: [PATCH 1/2] Update Twitch docs --- docs/nodecg-configuration.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/nodecg-configuration.md b/docs/nodecg-configuration.md index 0c075087..36cfa8e0 100644 --- a/docs/nodecg-configuration.md +++ b/docs/nodecg-configuration.md @@ -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. @@ -94,7 +94,7 @@ module.exports = { enabled: true, clientID: 'your_app_id', clientSecret: 'your_app_key', - scope: 'user_read', + scope: 'user:read:email', allowedUsernames: ['some_username'], allowedIds: ['11111111111111111', '22222222222222222'], }, From 0a7f2fcb4cdcb7eae5ab41aa0f1f0708181d74d0 Mon Sep 17 00:00:00 2001 From: LukasW1337 Date: Tue, 3 Sep 2024 20:56:01 +0200 Subject: [PATCH 2/2] . --- docs/nodecg-configuration.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/nodecg-configuration.md b/docs/nodecg-configuration.md index 36cfa8e0..5d390db3 100644 --- a/docs/nodecg-configuration.md +++ b/docs/nodecg-configuration.md @@ -92,8 +92,8 @@ module.exports = { }, twitch: { enabled: true, - clientID: 'your_app_id', - clientSecret: 'your_app_key', + clientID: 'your_twitch_app_client_id', + clientSecret: 'your_twitch_app_client_secret', scope: 'user:read:email', allowedUsernames: ['some_username'], allowedIds: ['11111111111111111', '22222222222222222'],