# Renewing access token to get latest user\_metadata

**URL:** <https://community.auth0.com/t/renewing-access-token-to-get-latest-user-metadata/88792>\
**Category:** Get Help\
**Created:** [August 15, 2022, 7:26pm UTC](https://community.auth0.com/t/renewing-access-token-to-get-latest-user-metadata/88792 "2022-08-15T19:26:51Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [August 24, 2022, 8:49pm UTC](https://community.auth0.com/t/renewing-access-token-to-get-latest-user-metadata/88792/3 "2022-08-24T20:49:20Z")

</div>

Hi @yanivs,

Welcome to the Auth0 Community!

You can use a refresh token to get a new token access token.

Here is a topic that explains it:

> [@How to refresh an access token in a Next.js application?](https://community.auth0.com/t/how-to-refresh-an-access-token-in-a-next-js-application/75806):
>
> Found [this](https://community.auth0.com/t/update-spa-token-after-user-updates-profile-through-managementapi-without-new-login/74166) question which asks about exactly the same problem: user logs in (frontend application gets an access\_token); user updates its profile, frontend sends information to the backend, backend calls the Management API user’s access\_token is now out of date on the frontend; we want it to be up to date; read [this](https://auth0.com/blog/ultimate-guide-nextjs-authentication-auth0/) tutorial - mentions that refresh\_token exists but doesn’t show how to implement them. read [this](https://auth0.com/docs/security/tokens/refresh-tokens) tutorial - it says that SPA applications should use the \*\* Authorization Code…

and here is a GH issue that contains more info and an example from the SDK:

> <https://github.com/auth0/nextjs-auth0/issues/4>
>
> First of all, thanks for this great library, the struggle was so real before I c…ame across your nextjs example!
> 
> As requested in https://github.com/sandrinodimattia/nextjs-auth0-example/issues/2 :
> 
> A good feature for the next release would be to store refresh token, in order to allow getting new access tokens when needed.

---

_[View the full topic](https://community.auth0.com/t/renewing-access-token-to-get-latest-user-metadata/88792)._
