I have the OAuth login flow described in the JavaScript SDK documentation working correctly in a single window. However, I’d like to use the popup style offered by the Twitch.login function as described here: http://stackoverflow.com/questions/1878529/twitter-oauth-via-a-popup/3602045
(That’s the same thread linked in the comment for the login function in the SDK itself!)
I have everything working up to the point where it suggests sending the auth token back to my main window. My problem is: what exactly am I supposed to do with that token back in the main window? I’ve combed through the SDK and I don’t see any option to set the auth token or otherwise let that window know that everything has been authenticated correctly.
As it stands now, the login flow “works” but then the main window can’t make any API calls because it doesn’t actually know about the auth token. There seems to be some auto-magical storing of the token for the SDK instance that I need to be able to hook into to make this work but hours of searching have yielded nothing. Am I just missing something obvious?