Nope, there is absolutely nothing printed in the console, before and after “hiting” the connect button. Is my code correct at least ? I didn’t mention it but “twitch-connect” and “twitch-disconnect” stand for the class i apply on my buttons. I think you already all guessed that.
I do not see a redirect_uri specified on the Twitch.init() which I believe, if I remember right, is required for the authentication method. This is how I call Twitch.init():
Since you are trying to login, that would require verifying the identity of your application, which the redirect_uri provides.I could also be entirely wrong too
@Pixel That’s an exercise for you to figure out and not something prescriptive from the Twitch API. I would recommend reading up on OAuth 2 and CSRF. There are a lot of articles covering state and how to implement it properly. It’s a security concern. If you’re interested in standards, you can read about state here: https://tools.ietf.org/html/rfc6749#section-10.12