Since the update, all my api are crashed, what should I add ? I’m french I don’t understand well the documentation, here is my code that worked before the patch.
Thanks for the feedback, but it’s still broken since the patch now I have error 401
{“error”:“Unauthorized”,“status”:401,“message”:“OAuth token is missing”}
That is front end logic, so that would suggest you need an implicit oAuth code (via making users login via Twitch)
But if you are displaying streams on a website, then it’s more performant to collect the streams you want to show using a cron job, and cache that information on your server, so your website loads from that cache instead of polling Twitch every page load.
If users login to your site and you use the users token, thats fine.
If you generate an App Access Token and use that, then thats a problem as you are leaking, what is essenitally a password. And you’d have to leak your clietnt secret, to generate the App Access Code in front end code