Thanks for your help Dist!
I’ve tried but i get a 400 error.
i get the code with “https://id.twitch.tv/oauth2/authorize?response_type=code&client_id=&redirect_uri=http://localhost:3000/&scope=user_read”
then i pass it to POST “https://id.twitch.tv/oauth2/token?client_id=&client_secret=&code=” + code + “&grant_type=client_credentials&redirect_uri=http://localhost:3000/” and with the token that i receve i do
fetch(“https://api.twitch.tv/helix/users”, {
headers: {
Authorization: "Bearer " + access_token
}
})