Authenticate users to dynamic URL

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”)