# How to fetch new token after updating user\_metadata in React

**URL:** <https://community.auth0.com/t/how-to-fetch-new-token-after-updating-user-metadata-in-react/65784>\
**Category:** Get Help\
**Tags:** node, user\_metadata, react, token, auth0\
**Created:** [July 8, 2021, 5:10am UTC](https://community.auth0.com/t/how-to-fetch-new-token-after-updating-user-metadata-in-react/65784 "2021-07-08T05:10:16Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![spatail](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/spatail/32/27908_2.png) [@spatail](https://community.auth0.com/u/spatail)\
**Post date:** [July 23, 2021, 5:33am UTC](https://community.auth0.com/t/how-to-fetch-new-token-after-updating-user-metadata-in-react/65784/10 "2021-07-23T05:33:58Z")

</div>

This is the same issue I reported here: [Silent Auth errors with Login Required after updating app\_metadata via Management API - #3 by spatail](https://community.auth0.com/t/silent-auth-errors-with-login-required-after-updating-app-metadata-via-management-api/65834/3)

After my backend updates the `app_metadata` via the Management API, the UI gets the Login Required error when calling `getAccessTokenSilently({ ignoreCache: true });`. If I instead update the metadata directly via the Auth0 UI, my UI is able to refresh the token successfully.

It seems that updating the metadata via the Management API changes the session in Auth0 perhaps invalidating the current refresh token? I am quite lost at this point.

Any help would be much appreciated.

---

_[View the full topic](https://community.auth0.com/t/how-to-fetch-new-token-after-updating-user-metadata-in-react/65784)._
