On opening this URL via my app (response_type=token)
https://id.twitch.tv/oauth2/authorize?response_type=token&client_id=" +TwitchClientID + “&redirect_uri=http://localhost:3000&scope=” + urlEncodedScope + “&state=” + UUID()
, the user gets taken to the Authorize form (seems the Twitch system cache authorization? because after the first Authorization click, subsequent requests simply return a response, which is where my problem begins:
I receive a response looking like this:
http://localhost:3000/#access_token=q32rc9bvde6h5zw7f1m0cwcic00r1m&scope=channel%3Amanage%3Apolls+channel%3Aread%3Apolls+channel%3Amanage%3Aschedule&state=02745790-f1c2-48b7-98e1-fe58e11c74a4&token_type=bearer
Please note the “#” used as a parameter start character.
OTOH,
Authorize result with response_type=code returns a standard ? as the delimiter:
http://localhost:3000/?code=kvzeki95frsw99exilhv8tb1uheaxp&scope=channel%3Amanage%3Apolls+channel%3Aread%3Apolls&state=1799a20a-b65d-444a-bc2a-40e26bb8cddb
Any ideas, people?
Thanks heaps