From 562e7792e961f5a3f221d5bbd71783ca459d590a Mon Sep 17 00:00:00 2001 From: Jo Eskil Date: Fri, 14 Nov 2025 00:23:03 +0100 Subject: [PATCH] Fix Twitch OAuth redirect URI and update setup instructions --- SETUP_AND_TESTING.md | 2 +- php/auth/twitch/login.php | 19 +++++++++++++++++++ php/config.php | 24 ++++++++++++++++++++++++ 3 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 php/auth/twitch/login.php create mode 100644 php/config.php diff --git a/SETUP_AND_TESTING.md b/SETUP_AND_TESTING.md index cf1112f..a8d2fd2 100644 --- a/SETUP_AND_TESTING.md +++ b/SETUP_AND_TESTING.md @@ -31,7 +31,7 @@ This document provides instructions to set up and test the MultiChat Overlay app ## 3. Configure Twitch API Credentials 1. **Create Twitch Application:** Go to the Twitch Developer Console (dev.twitch.tv/console/apps) and create a new application. - * Set the **OAuth Redirect URLs** to `http://localhost/auth/twitch/callback.php` (or `http://localhost:PORT/auth/twitch/callback.php` if you're using a different port for your PHP server). + * Set the **OAuth Redirect URLs** to `http://localhost/auth.php` (or `http://localhost:PORT/auth.php` if you're using a different port for your PHP server). 2. **Get Client ID and Secret:** Note down your Client ID and generate a Client Secret. 3. **Update `php/config.php`:** Open `/home/joe/MultiChatOverlay/php/config.php` and update the `TWITCH_CLIENT_ID`, `TWITCH_CLIENT_SECRET`, and `TWITCH_REDIRECT_URI` constants with your application's credentials. diff --git a/php/auth/twitch/login.php b/php/auth/twitch/login.php new file mode 100644 index 0000000..43c8d6d --- /dev/null +++ b/php/auth/twitch/login.php @@ -0,0 +1,19 @@ + \ No newline at end of file diff --git a/php/config.php b/php/config.php new file mode 100644 index 0000000..a7436aa --- /dev/null +++ b/php/config.php @@ -0,0 +1,24 @@ +