# Get new JWT in Next 13

**URL:** <https://community.auth0.com/t/get-new-jwt-in-next-13/118935>\
**Category:** Get Help\
**Tags:** authentication-sessions, sessions\
**Created:** [October 19, 2023, 5:01pm UTC](https://community.auth0.com/t/get-new-jwt-in-next-13/118935 "2023-10-19T17:01:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sapessi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sapessi/32/51796_2.png) [@Sapessi](https://community.auth0.com/u/Sapessi)\
**Post date:** [October 19, 2023, 5:01pm UTC](https://community.auth0.com/t/get-new-jwt-in-next-13/118935/1 "2023-10-19T17:01:26Z")

</div>

Hi everyone,

I am using Auth0 with NextJS 13 and the app router.

I need to create a new token\_id (JWT token) inside a protected route page every time the user access the page. It needs to be signed with the Auth0 secret.

Do you have any suggestion on how I can achieve it?

P.S.: using the Auth0 helper “getSession()” doesn’t work since it always returns the same JWT.

Thank you

---

<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:** [November 21, 2023, 11:51pm UTC](https://community.auth0.com/t/get-new-jwt-in-next-13/118935/3 "2023-11-21T23:51:25Z")

</div>

Hey there @Sapessi welcome to the community!

> [@Sapessi](#):
>
> I need to create a new token\_id (JWT token) inside a protected route page every time the user access the page. It needs to be signed with the Auth0 secret.

I’m not sure it’s possible to get a new access token dynamically/silently similar to the way a front end SDK like auth0-react does:

[https://community.auth0.com/t/with-nextjs-auth0-how-can-i-get-an-access-token-with-a-different-audience-than-i-passed-during-the-login/112287](https://community.auth0.com/t/with-nextjs-auth0-how-can-i-get-an-access-token-with-a-different-audience-than-i-passed-during-the-login/112287)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 5, 2023, 11:51pm UTC](https://community.auth0.com/t/get-new-jwt-in-next-13/118935/4 "2023-12-05T23:51:25Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
