Hello - I think the title says it all, i’ve been trying to figure this out for a couple days but can’t seem to.
In Auth0, my users have a user_metadata field called ‘favorites’ which is an array of GUIDs. When a user clicks the GUID on the client end, that GUID is added to the favorites array for the Auth0 user on the Auth0 server. I have checked the user manually to ensure this is happening.
The problem is that I now need a refreshed snapshot of the user_metadata in my client now that the favorite has been added to the server list. I am using the useAuth0 hook in my react app throughout the app, so I really want to try and keep things streamlined by simply making a call to update useAuth0.user from the server without having to logout and back in again.
Does someone know what the solution to this is? Thanks very much.
Paul