{
“error”: “Unauthorized”,
“status”: 401,
“message”: “Insufficient authorization in token”
}
I get the JSON above after doing a request on https://api.twitch.tv/helix/moderation/moderators with the right headers and query below,
headers: {
"Client-ID": process.env.CLIENT_ID,
Authorization: "Bearer " + accessToken,
},
qs: {
broadcaster_id: "90849777",
},
I checked that the client-id was good, the token was good and the broadcaster_id too so I don’t understand why it says there’s insufficient authorization in token because I succeeded to get the JSON object with the accessToken, expiresIn, scope, token_type properties.
Docs : https://dev.twitch.tv/docs/api/reference#get-moderators