JWT Authentication of REST API

Hi there, I have a Retool resource that communicates with our REST API, currently authenticated by an API key as a header.
We’ve implemented JWT authentication, and all our other services interact with our API using JWT now except Retool. I know there’s a “Custom Auth” option, but not sure how to use it in the context of JWT tokens generated as per https://jwt.io/
Is there a way to integrate JWT auth with Retool, or is it not supported? Has anybody done this before, even if they hacked it together?
Thanks!

I hacked this together using a custom REST API request for the authentication (instead of putting authentication into the resource), and then using javascript functions to decode / encode the JWT token with the content you want

@byron I’d love to see this – mind sharing? Either here or to kent@retool.com

Thanks!