-
I'd like to know if other session variables besides I am using JWT and I would like the user to be able to switch to a different tenant. And so instead of relying on their user id to determine what rows they have permissions for, I would like to rely on their tenant id, which would be in the session variable Is it recommended to use other session variables like Also, I am a little confused as to how the comparison operators (such as |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, using other session variables are recommend and encouraged (the The second question is a good one about strings vs x-hasura-[...]. Based on the current setup, everything which is prefixed with x-hasura-[...] will first check with session variables to see if they're present (and then default to string I believe). This could be made more clear in the UI. |
Beta Was this translation helpful? Give feedback.
Yes, using other session variables are recommend and encouraged (the
x-hasura-user-id
which is shown is kind of a quick-add for a commonly used variable).The second question is a good one about strings vs x-hasura-[...]. Based on the current setup, everything which is prefixed with x-hasura-[...] will first check with session variables to see if they're present (and then default to string I believe). This could be made more clear in the UI.