I’ll update with my own answer.
I found (RTFM) that the channelId can be obtained from the Object passed to onAuthorized
twitch.onAuthorized(function (auth) {
isAuthed = true;
console.log('The JWT that will be passed to the EBS is', auth.token);
console.log('The channel ID is', auth.channelId);
});
I then passed this channelId to my makeServerToken function. Ensuring that it’s forced to a string.