Extension Chat Message | Unauthorized 401

Signed JWT created by the EBS, following the requirements documented in Signing the JWT (in Building Extensions ) or Twitch JWT containing the broadcaster role. The channel_id inside 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