You can create a jwt with any signing function as long as your singature verifier function is compatible. Added examples are for web3, ethers, polkadot.js, bitcoinjs, metamask.
For running the web3 example.
cd web3
npm i
ts-node .
- All the project in the directory have the same structure.
- I'm using ts-node, you can also use tsc to run the examples.