JWT Library in Typescript

Hello all,

I am trying to integrate authentication with Xsolla, and looking in the docs I found the below snippet.

I was under the impression that we can’t use external libraries with Typescript runtime. Is that incorrect?

What would be a good way to add a JWT library to the Typescript runtime to process the content of a JWT, please?

Kind regards

Hello @Antviss,

You can if you use a JS bundler such as rollup, we can’t guarantee that every node module will work out of the box, but you can try to add your library as a dependency following our guide: Nakama: TypeScript Runtime | Heroic Labs Documentation.