# Is it possible to read the rest of the data inside JWT

**URL:** <https://discuss.dgraph.io/t/is-it-possible-to-read-the-rest-of-the-data-inside-jwt/13085>\
**Category:** GraphQL\
**Tags:** kind:question\
**Created:** [March 6, 2021, 12:58am UTC](https://discuss.dgraph.io/t/is-it-possible-to-read-the-rest-of-the-data-inside-jwt/13085 "2021-03-06T00:58:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sambhav-gore](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/sambhav-gore/32/6342_2.png) [@sambhav-gore](https://discuss.dgraph.io/u/sambhav-gore)\
**Post date:** [March 6, 2021, 12:58am UTC](https://discuss.dgraph.io/t/is-it-possible-to-read-the-rest-of-the-data-inside-jwt/13085/1 "2021-03-06T00:58:06Z")

</div>

So when I add custom claims, I am able to read that in the auth rules but I need to copy some things inside of the custom claims which are already in JWT like the user id and the email.

I am using Firebase Auth here, I think I read somewhere that we can read any data that is inside of the JWT and not just the ones inside of the custom claims, but I’ve read so many docs in last couple of days that I am not able to recall where I saw that and failing to find an example of it either.

So, is it possible, is there an example ?

thanks!

---

<div class="post-metadata">

**Author:** ![amaster507](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/amaster507/32/4123_2.png) [@amaster507](https://discuss.dgraph.io/u/amaster507)\
**Post date:** [March 6, 2021, 2:36am UTC](https://discuss.dgraph.io/t/is-it-possible-to-read-the-rest-of-the-data-inside-jwt/13085/2 "2021-03-06T02:36:56Z")

</div>

> [@GraphQL authorization using standard claims](http://discuss.hypermode.com/t/graphql-authorization-using-standard-claims/10998/10):
>
> Hey @haPartnerships, this feature is taken by the team into our roadmap and it should be the part of 21.03 release.

---

<div class="post-metadata">

**Author:** ![sambhav-gore](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/sambhav-gore/32/6342_2.png) [@sambhav-gore](https://discuss.dgraph.io/u/sambhav-gore)\
**Post date:** [March 6, 2021, 2:40am UTC](https://discuss.dgraph.io/t/is-it-possible-to-read-the-rest-of-the-data-inside-jwt/13085/3 "2021-03-06T02:40:50Z")

</div>

Thanks, that’s where I saw this.

good to know that the feature is merged in master already though.

---

<div class="post-metadata">

**Author:** ![Thammada](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/thammada/32/8360_2.png) [@Thammada](https://discuss.dgraph.io/u/Thammada)\
**Post date:** [April 22, 2021, 5:29pm UTC](https://discuss.dgraph.io/t/is-it-possible-to-read-the-rest-of-the-data-inside-jwt/13085/4 "2021-04-22T17:29:18Z")

</div>

Hi @amaster507 is this feature available on Dgraph Cloud? I tried the Todo example [https://dgraph.io/docs/graphql/todo-app-tutorial/todo-firebase-jwt/](https://dgraph.io/docs/graphql/todo-app-tutorial/todo-firebase-jwt/) on Dgraph Cloud without using custom claims. The other fields don’t seem to be available.

Edit:  
I’m using a starter instance on Dgraph Cloud which is still on version 20.11 So I that’s why it’s not available
