# How do i get claims from access token in @auth0/nextjs lib?

**URL:** <https://community.auth0.com/t/how-do-i-get-claims-from-access-token-in-auth0-nextjs-lib/91379>\
**Category:** Get Help\
**Created:** [September 27, 2022, 1:39pm UTC](https://community.auth0.com/t/how-do-i-get-claims-from-access-token-in-auth0-nextjs-lib/91379 "2022-09-27T13:39:19Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [September 29, 2022, 12:19am UTC](https://community.auth0.com/t/how-do-i-get-claims-from-access-token-in-auth0-nextjs-lib/91379/3 "2022-09-29T00:19:54Z")

</div>

Hey there @danyo welcome to the community!

> [@danyo](#):
>
> Is there a way to read them from the nextjs api?
> 
> I found a getSession but all it returns is the encoded JWT access token.

Where is exactly in your app are you looking to access the permissions? If you can elaborate on your use case a bit that could be helpful.

The following post may have the answer(s) you are looking for:

> [@Token in appSession cookie cannot be decoded](https://community.auth0.com/t/token-in-appsession-cookie-cannot-be-decoded/60591/5):
>
> I was referring to the part of the token before the first period. For example, if you paste this token in [jwt.io/](http://jwt.io/), you’ll see the header decoded, but not the payload: eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIiwiaWF0IjoxNjE3ODAzNDc5LCJ1YXQiOjE2MTc4ODE3MjUsImV4cCI6MTYxNzk2ODEyNX0..TIKxzG4pPsaR94xs.OcYKxDstl98CUxx9NfgjfBMNwjxChdT8CPP0ieAW6ODsBXBFaoPCIgBwGrZMxzDctd2nQs0eG52q1FGynbh4zmD1\_\_Wu5zLlUHBojHCZB-kuJPLP-kzMxggr9dpQ7oZL02MgUh689Kh3byV6513QG3JSWw7kOmlll7o87aGrEShDPIxvaprHlDfM2iCfq9GJU0UuqHIhRAqWu…

Let us know!

---

_[View the full topic](https://community.auth0.com/t/how-do-i-get-claims-from-access-token-in-auth0-nextjs-lib/91379)._
