# Possible to get signed JWT through API similar to the javascript helper?

**URL:** <https://discuss.dev.twitch.com/t/possible-to-get-signed-jwt-through-api-similar-to-the-javascript-helper/59527>\
**Category:** Extensions\
**Created:** [June 29, 2024, 9:47pm UTC](https://discuss.dev.twitch.com/t/possible-to-get-signed-jwt-through-api-similar-to-the-javascript-helper/59527 "2024-06-29T21:47:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bountygiver](https://avatars.discourse-cdn.com/v4/letter/b/d26b3c/32.png) [@bountygiver](https://discuss.dev.twitch.com/u/bountygiver)\
**Post date:** [June 29, 2024, 9:47pm UTC](https://discuss.dev.twitch.com/t/possible-to-get-signed-jwt-through-api-similar-to-the-javascript-helper/59527/1 "2024-06-29T21:47:59Z")

</div>

I am developing an extension to display status for a game mod, since I will not be using a EBS, I broadcast extension update messages through PubSub, but this requires the streamer to have the live config page open which communicates with my game mod in order to push these updates. Since my game mod already uses implicit authentication to connect to twitch chat, I wonder if it is possible to use said authentication to get a signed JWT the same way the twitch extension helper get one without going through a EBS so I can broadcast those PubSub messages directly from the game mod without needing a live config page to forward them?

---

<div class="post-metadata">

**Author:** ![WLG3R](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/wlg3r/32/6985_2.png) [@WLG3R](https://discuss.dev.twitch.com/u/WLG3R)\
**Post date:** [June 30, 2024, 12:59am UTC](https://discuss.dev.twitch.com/t/possible-to-get-signed-jwt-through-api-similar-to-the-javascript-helper/59527/2 "2024-06-30T00:59:18Z")

</div>

You can build and sign the JWT yourself, but not in game. You would need a backend server to do that. You can build an API relay server. The game mod would call your server then the server signs a JWT and calls the API.

---

<div class="post-metadata">

**Author:** ![bountygiver](https://avatars.discourse-cdn.com/v4/letter/b/d26b3c/32.png) [@bountygiver](https://discuss.dev.twitch.com/u/bountygiver)\
**Post date:** [June 30, 2024, 1:14am UTC](https://discuss.dev.twitch.com/t/possible-to-get-signed-jwt-through-api-similar-to-the-javascript-helper/59527/3 "2024-06-30T01:14:03Z")

</div>

But the point is to not having a server. Currently I already am using the live config page as a relay, as twitch already does gladly sign the JWT for that page. I want to use the same capability the live config page can already do except just do it directly from the mod without needing an extra window (which I could make the game launch automatically in the first place, I just want to avoid needing that extra window).

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [June 30, 2024, 7:38am UTC](https://discuss.dev.twitch.com/t/possible-to-get-signed-jwt-through-api-similar-to-the-javascript-helper/59527/4 "2024-06-30T07:38:33Z")

</div>

> [@bountygiver](#):
>
> But the point is to not having a server.

You can’t _not_ have a sever in this scenario, it is required. (and is what I do for the game matched extensions, as the same server is also where you download the relevant files needed to go with, in this case local software that sends the data up to me)

For what you describe a relay server (aka EBS) is required.

Or as you already have done the config page open, which as you identified is problematic for streamers to remember to open.
