Welp, after bashing my head into a wall for almost a f$%ing week now, surprise surprise. just as I guess none of these enlightened twitch api “specialist” were able to point out that this is INDEED impossible for webgl. I’m so happy I wasted my time with this.
Literally, stupid I wasted all this time and no one could of just told me Oauth is impossible (just as i suspected) for a webgl application(doesnt have read/write privilage) so, if you’re looking to make a newgrounds/itch.io or any other sort of WEB based game and want to use twitch tokens don’t waste your time.
you’re wrong. “Industry standard” on what? on a indie market where most people won’t touch your game cause it’s a “ew download” kindly go to the door. You imbeciles just wasted a week of my time, pointing out pointless semantics when it’s not even possible TO BEGIN with, with webgl JUST LIKE I THOUGHT!! wow surprise surprise, the average programming “expert” on these forums has a BASED understanding of programming at best, and you don’t give clear code examples or answers cause, YOU GUEST it, you don’t have em. Makes zero sense why you even reply to an answer if you clearly don’t know the answer. I’m done here and will always be, in the indie market web-based reigns supreme for a MAGNITUDE of reasons and any website/app that doesn’t have a api to support the reigning king isn’t worth my time anyways.
It’s not our job to teach you common industry concepts such as OAuth, or how to turn a cURL request into the syntax for a language you wish to use. If you’re that inexperienced with the language you’re working in that you need hand holding through code examples perhaps working through some YouTube tutorials, or an online course, might be a good start.
As for a WebGL game interacting with the Twitch API, WebGL can make HTTP requests correct? Have a server that handles the OAuth flow and stores the user token and then proxy the requests through that. For example have the game tell the user to go to a link to Connect with Twitch, redirect to your server, and then the WebGL game just make requests to your server and if the user has gone through that OAuth process there’ll be a token waiting there for you. No downloading anything on the users side.