Using @custom, send Bearer token that is dynamically generated by Auth0

Using Slash. I’m using Auth0 as my auth service. I have an API set up that is configured to verify JWT’s generated from my account in Auth0. If tokens is valid, serves up end points. If not… 401. Works like a champ.

I have a @custom in my schema that calls the API endpoint mentioned above. If I turn off JWT verification on the end point, it works great. However, I need to have this secured. Auth0 expects that machine making the call to dynamically generate a JWT.

Is there a way that I can configured my schema to make the Rest API call to Auth0 to get the JWT to then send as the Authorization part of the @custom request?

Hi @tommo,

Sorry for the late response. I think what you are describing is the JWK framework to dynamically get JWT keys. I believe support for this has just landed in master, and you can expect to see support in Slash GraphQL early next month.

Tejas