x-hasura-user-id in custom action #10651
-
Hey everyone, I'm using hasura with the auth webhook mode where I return 'X-Hasura-User-Id' with the id of an authenticated user, which works fine for query rules. Now my question is if I can access this user id in custom actions? I've already tried my luck checking the headers (forward headers is checked ofc), but it doesn't seem to be there. Any idea? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hey, @Zerebokep — it looks like we strip these from the Can you check the request and see if the |
Beta Was this translation helpful? Give feedback.
-
I can confirm this is the expected behavior. When I log the body of a request made via the console to a webhook supporting an Action, this is the content:
If you have other questions, please feel free to re-open @Zerebokep 👍 |
Beta Was this translation helpful? Give feedback.
Hey, @Zerebokep — it looks like we strip these from the
headers
and place them in thepayload
of the request itself. You can see this response here.Can you check the request and see if the
x-hasura-user-id
is included in the payload rather than the headers?