Skip to content
Discussion options

You must be logged in to vote

Someone correct me if I'm wrong, but I believe, following https://hasura.io/docs/latest/graphql/core/auth/authentication/jwt.html#tl-dr:

  • x-hasura-role within the JWT is probably not what you want, you'd want to pass it as a request header
  • then, you probably intended editor instead of [editor]

That JWT (ignoring the x-hasura-role key) allows making requests as both user and editor. If no x-hasura-role header is passed, it will be made as user.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ghost
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #8117 on February 01, 2022 10:27.