Twitch.TV JS SDK not retaining session grant?

Okay… I’ve figured out the issue… BOTH URLs have to have the JS SDK initiliazed on it.

I did not have the JS SDK on http://yokappa.tv

However, I am experiencing another issue. Once a user has been granted a session key, that session key seems to be only accessible in that specific instance of the browser. So if I am not using the popup: true option, it works perfectly fine.

But, if I am using popup: true, then the authorization grant is opened up using a window.open() function (as defined here: http://justintv.github.io/twitch-js-sdk/docs/twitch.html). The session key stored for the authorization grant only works in that opened popup window; not the original window that opened the Twitch.login() function in the first place. If this can’t be done, then this seems like a massive oversight on the JS SDK; which makes the popup: true option completely worthless.

How do I get the session key back to that original window? As well, how do I trigger an event on that original window after a user has logged in and authorized the application?