This commit is contained in:
2025-06-30 18:57:16 +01:00
parent f715e9c7a0
commit e868153bbb

View File

@ -43,7 +43,7 @@ export const twitchFollowEvent = z.object({
export const createTwitchClient = () => { export const createTwitchClient = () => {
const getAccessToken = async () => { const getAccessToken = async () => {
const twitchAuthResponse = await fetch( 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", method: "POST",
headers: { headers: {