Hi there,
I am running React on the frontend and Node on the backend.
I am updating my user_metadata by a POST request to the backend and then updating user_metadata with a patch method to the users endpoint with a Management API Token.
When the update is complete, the changes are not reflected in my session on the client-side (React). If I log out and log back in, I can see the updated user_metadata. How should I go about getting the updated user_metadata without having to re-login on the client side?
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.