Closed sntr8 closed 3 years ago
Looking at the code the refresh API initiates towards https://api.twitch.tv/kraken/ so that might cause the problem with Helix tokens?
Ya, so there's some confusion here I think, and I don't completely understand it myself.
The first client id you shared is for TwitchTokenGenerator's API, the second one (the one that succeeded) is for the frontend site.
I'm guessing you generated the initial token using the frontend and not an API flow?
Yes, I generated the initial token from the frontend.
For now, should default to using the frontend client id, and not the API.
Running GET to refresh API returns invalid Client ID.
Using that Client ID on calls towards Helix API will result to an error
But changing Client ID to the one displayed on the web page results in success
Could this be fixed so I could refresh my tokens automatically from my container without need to visit the web page?