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
A quick update, we've added an effect in AuthGuardian to add session variables
directly. Simple choose the action On Hasura set session variable, give the
variable a name, and we'll take care of prefixing the name and putting it in the right JWT location.
For example, if we want to make the user's verified TwitchTV email available for
our Hasura permission, queries, or mutations, we can set the following
AuthGuardian rules:
When this user on Twitch has verified email is true
Then On hasura set session variable email built in value TWITCH_TV_EMAIL
And our resulting JWT will have the X-HASURA-EMAIL variable correctly set:
A quick update, we've added an effect in AuthGuardian to add session variables
directly. Simple choose the action
On Hasura set session variable
, give thevariable a name, and we'll take care of prefixing the name and putting it in the right JWT location.
See the Hasura documentation on how session variables can be used with
permissions, mutations, and so much
more.
It's an incredibly powerful system for being so small!
For example, if we want to make the user's verified TwitchTV email available for
our Hasura permission, queries, or mutations, we can set the following
AuthGuardian rules:
And our resulting JWT will have the
X-HASURA-EMAIL
variable correctly set:The text was updated successfully, but these errors were encountered: