Generate JWT in custom auth

Is there a way to generate a JWT in a custom auth workflow?
I assume the only possible way to would be a js block, but I'm not sure if the required libraries are available there (or if/how I can make them available).
Any help is highly appreciated

Hi @gasperblk, here is an example on how to achieve this:

The topic above reports a bug. If you are using a GraphQL resource I highly recommend going over the whole tread. :slightly_smiling_face: