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

@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 by using ignoreCache in getAccessTokenSilently. Is there a similar solution for NextJS?

This solution requires to call the Management API to fetch the updated user metadata state, but no option for getting the updated data in useUser.