You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, currently there seems to be no documentation on how to fetch the JWT token details of the user who has made the request to the typescript function. How can I do this?
The text was updated successfully, but these errors were encountered:
If you configure JWT authentication with your Supergraph, your claims can be made available as Session Variables. You can then bind session variables to command arguments using CommandPermissions (more docs here). Command arguments are just the arguments you define on your TypeScript function.
So in short:
Configure JWT auth on your supergraph to get claim values as session variables
Define arguments that would take your claim values on your functions
Introspect your connector then add commands for your functions
Use CommandPermissions to bind the session variables to your arguments
I've moved this issue to https://github.com/hasura/graphql-engine so where it can receive more attention. :) Our tooling is set up to monitor issues on this repo and this is where we collect them.
Hello, currently there seems to be no documentation on how to fetch the JWT token details of the user who has made the request to the typescript function. How can I do this?
The text was updated successfully, but these errors were encountered: