Twitch API returns 'data'

Hello,
So I am trying to do a login to grab a oauth token using the api but it keeps returning ‘data’. This code was working and then for some reason it just stopped and is now giving this response. Anyone know why?
Here is the code:

There would appear to be no authorization header

What do you mean? This code I am trying to grab the OAuth token which I then pass to another function which does the login.
I am missing something in this code when grabbing the OAuth token? What would I put as the value for the authorization?

Your screenshot is to the users endpoint

Not any of the token end point/flows

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.