hi, i’m actually triying to send a request but i permanently have the error : Invalid OAuth token, when i use the token i generated on twitch.
with an error 401 acces denied
my code :
export async function Data(url =‘’) {
const headers = {
‘Client-ID’: ‘xxx’,
‘Authorization’: ‘Bearer xxx’
As the error would indicate, your OAuth token is invalid, so I’d suggest reading through the Authentication Docs and ensure you’re properly completing one of the OAuth flows.
If you think you’ve gone through the Authentication process correctly you should be able to use the Validate Token endpoint https://dev.twitch.tv/docs/authentication/validate-tokens which will tell if if the token is valid or not.