# useUser only gets metadata updates after new user logs out and back in

**URL:** <https://community.auth0.com/t/useuser-only-gets-metadata-updates-after-new-user-logs-out-and-back-in/91091>\
**Category:** Get Help\
**Tags:** actions, nextjs, roles\
**Created:** [September 21, 2022, 11:56pm UTC](https://community.auth0.com/t/useuser-only-gets-metadata-updates-after-new-user-logs-out-and-back-in/91091 "2022-09-21T23:56:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pranshu.midha](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/pranshu.midha/32/33650_2.png) [@pranshu.midha](https://community.auth0.com/u/pranshu.midha)\
**Post date:** [December 8, 2022, 3:47am UTC](https://community.auth0.com/t/useuser-only-gets-metadata-updates-after-new-user-logs-out-and-back-in/91091/2 "2022-12-08T03:47:31Z")

</div>

@steffanie Any luck finding a solution for this?

I am trying to achieve something similar. I am setting/updating the user metadata using the Management API, but it doesn’t reflect on the Frontend in the useUser hook, unless you logout and login again.

I think there’s a solution to [fetch the updated metadata in React](https://community.auth0.com/t/how-to-fetch-new-token-after-updating-user-metadata-in-react/65784/2) by using ignoreCache in getAccessTokenSilently. Is there a similar solution for NextJS?

[This solution](https://community.auth0.com/t/can-you-access-user-app-metadata-from-the-front-end-with-next-js/81778/3) requires to call the Management API to fetch the updated user metadata state, but no option for getting the updated data in useUser.

---

_[View the full topic](https://community.auth0.com/t/useuser-only-gets-metadata-updates-after-new-user-logs-out-and-back-in/91091)._
