diff --git a/src/lib/twitch.ts b/src/lib/twitch.ts index 3a1d53d..895c292 100644 --- a/src/lib/twitch.ts +++ b/src/lib/twitch.ts @@ -43,7 +43,7 @@ export const twitchFollowEvent = z.object({ export const createTwitchClient = () => { const getAccessToken = async () => { const twitchAuthResponse = await fetch( - `https://id.twitch.tv/oauth2/token?client_id=${TWITCH_APP_CLIENT_ID}&client_secret=${TWITCH_APP_SECRET}&grant_type=client_credentials`, + `https://id.twitch.tv/oauth2/token?client_id=${TWITCH_APP_CLIENT_ID}&client_secret=${TWITCH_APP_SECRET}&grant_type=client_credentials&&redirect_uri=https://twitch.johncosta.tech/redirect&scope=moderator:read:followers`, { method: "POST", headers: {