# Using JWTs for GraphQL Authorization with Hasura

**URL:** <https://community.auth0.com/t/using-jwts-for-graphql-authorization-with-hasura/21015>\
**Category:** Blog Discussions\
**Created:** [February 6, 2019, 5:00pm UTC](https://community.auth0.com/t/using-jwts-for-graphql-authorization-with-hasura/21015 "2019-02-06T17:00:27Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramiro](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ramiro/32/8077_2.png) [@ramiro](https://community.auth0.com/u/ramiro)\
**Post date:** [February 6, 2019, 5:00pm UTC](https://community.auth0.com/t/using-jwts-for-graphql-authorization-with-hasura/21015/1 "2019-02-06T17:00:27Z")

</div>

Learn about the Hasura platform and how their GraphQL APIs can be secured using JSON Web Tokens.

Read on 🎡 \>\> [Authorization Using JWT Authentication with Hasura GraphQL Engine](https://auth0.com/blog/using-jwts-for-graphql-authorization-with-hasura/)

 ![Using%20JWTs%20for%20GraphQL%20Authorization%20with%20Hasura%20(1)](https://global.discourse-cdn.com/auth0/original/2X/9/93bfec1d7477467edf808717152ca457695e2db8.png)

---

<div class="post-metadata">

**Author:** ![lukerhodes](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lukerhodes/32/12867_2.png) [@lukerhodes](https://community.auth0.com/u/lukerhodes)\
**Post date:** [May 2, 2019, 8:55am UTC](https://community.auth0.com/t/using-jwts-for-graphql-authorization-with-hasura/21015/2 "2019-05-02T08:55:06Z")

</div>

I feel like the most important bit of this tutorial would be the “Generating a valid JWT” section, ideally showing how to have Hasura add the metadata to the token, however it’s glossed over. Any chance of getting more detail?

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [September 3, 2019, 6:43am UTC](https://community.auth0.com/t/using-jwts-for-graphql-authorization-with-hasura/21015/3 "2019-09-03T06:43:31Z")

</div>

Hey there @lukerhodes!

Will make sure to relay that feedback to article author!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [September 3, 2019, 8:29am UTC](https://community.auth0.com/t/using-jwts-for-graphql-authorization-with-hasura/21015/4 "2019-09-03T08:29:50Z")

</div>



---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [September 7, 2019, 3:54pm UTC](https://community.auth0.com/t/using-jwts-for-graphql-authorization-with-hasura/21015/5 "2019-09-07T15:54:15Z")

</div>



---

<div class="post-metadata">

**Author:** ![dan-auth0](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@dan-auth0](https://community.auth0.com/u/dan-auth0)\
**Post date:** [September 30, 2019, 7:08pm UTC](https://community.auth0.com/t/using-jwts-for-graphql-authorization-with-hasura/21015/6 "2019-09-30T19:08:11Z")

</div>

Howdy! Thanks for your feedback. We did some research and took a look at the tutorial:

The steps say to browse to [https://auth0-hasura-demo.now.sh/](https://auth0-hasura-demo.now.sh/), and log in. Once you do that, the token will be visible and can be copied.

Then, browse to [https://jwt.io](https://jwt.io/) and paste in the token to see the token claims.

There are screenshots for all these steps to guide you.

Let us know please if this helps or if you need further assistance.

Thank you again for reading the blog post!

---

<div class="post-metadata">

**Author:** ![ryukent](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ryukent/32/22531_2.png) [@ryukent](https://community.auth0.com/u/ryukent)\
**Post date:** [July 13, 2020, 9:12pm UTC](https://community.auth0.com/t/using-jwts-for-graphql-authorization-with-hasura/21015/7 "2020-07-13T21:12:53Z")

</div>

Following:

> **[Authorization Using JWT Authentication with Hasura GraphQL Engine](https://auth0.com/blog/using-jwts-for-graphql-authorization-with-hasura/)**
>
> Learn how GraphQL APIs can be secured using JSON Web Tokens for authorization in the Hasura GraphQL Engine and CLI platform.

Getting error after mutation:  
“message”: “field "name" not found in type: ‘tag\_insert\_input’”

Maybe DB needs repair after lots of people playing with it?

---

<div class="post-metadata">

**Author:** ![dan-auth0](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@dan-auth0](https://community.auth0.com/u/dan-auth0)\
**Post date:** [July 14, 2020, 2:32am UTC](https://community.auth0.com/t/using-jwts-for-graphql-authorization-with-hasura/21015/8 "2020-07-14T02:32:36Z")

</div>

Howdy, Ryu! Welcome to the Auth0 Community. Thank you for reading the post and sharing your feedback.

We are working on updating our Hasura-related guidance in collaboration with the Hasura team 🙏 Stay tuned for updates in the coming weeks, please.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 10, 2021, 9:14am UTC](https://community.auth0.com/t/using-jwts-for-graphql-authorization-with-hasura/21015/9 "2021-12-10T09:14:54Z")

</div>



---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [March 7, 2022, 2:02pm UTC](https://community.auth0.com/t/using-jwts-for-graphql-authorization-with-hasura/21015/10 "2022-03-07T14:02:22Z")

</div>


