I have a site that currently authenticates users successfully though the twitch API, however, I’d like the users to maintain the current url location when they authenticate. For instance, if the users URL is currently http://mysite.com/riotgames, I’d like, after authentication, to redirect back to that URL instead of http://mysite.com/
You can add a
state parameter to your redirect call which is be reserved once Twitch redirects back to you.
https://github.com/justintv/Twitch-API/blob/master/authentication.md#authorization-code-flow (ctrl + f “state”)
What if I’m using Implicit Grant Flow?
I don’t think it is possible with the implicit flow.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.