Signed JWT created by the EBS, following the requirements documented in Signing the JWT (in Building Extensions ) or Twitch JWT containing the
broadcasterrole. Thechannel_idinside the JWT must match the channel ID in the request URL.
const payload = { channel_id: ‘’+channel_id, role: “broadcaster”, “exp”: exp };
That should do it