This commit is contained in:
2025-06-30 19:04:59 +01:00
parent 2623845473
commit 15a457bf65

View File

@ -51,7 +51,8 @@ export const createTwitchClient = () => {
`?response_type=code` +
`&client_id=${TWITCH_APP_CLIENT_ID}` +
`&redirect_uri=${encodeURIComponent("https://twitch.johncosta.tech/redirect")}` +
`&scope=moderator:read:followers`
`&scope=moderator:read:followers` +
`&state=mkldsamkldsamkldsamkldsa`
const twitchAuthResponse =
@ -67,7 +68,6 @@ export const createTwitchClient = () => {
const json = await twitchAuthResponse.json();
console.log(json)
const { access_token } = authBodyValidator.parse(
json,
);