13 lines
201 B
JavaScript
13 lines
201 B
JavaScript
let token, userId;
|
|
|
|
const twitch = window.Twitch.ext;
|
|
|
|
twitch.onContext((context) => {
|
|
twitch.rig.log(context);
|
|
});
|
|
|
|
twitch.onAuthorized((auth) => {
|
|
token = auth.token;
|
|
userId = auth.userId;
|
|
});
|