fix
This commit is contained in:
@ -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: {
|
||||||
|
Reference in New Issue
Block a user