Get JWT or Streamer Info in Configuration

The config panel can use the same as viewer.html

window.Twitch.ext.onAuthorized(function(auth) {
    var parts = auth.token.split('.');
    var payload = JSON.parse(window.atob(parts[1]));
    var channel_id = payload.channel_id;
});

Either process the auth or pass it in whole to your EBS when submitting a config form.

2 Likes