The Complete Guide to React Authentication with Auth0

Hi,

Thanks for this comprehensive guide.

I’ve set up an app which uses @auth0/auth0-react for the front-end as described, and auth0 in the back to perform management actions including updating user_metadata and email. With updating email, it requires you to log in again so that’s one workaround, but when you update metadata there doesn’t seem to be a way to update the cached user object in the front-end to reflect the changes without logging out and back in again.

Is there a way to re-fetch the user, or (less optimally) manipulate the cached data to reflect the changes?

Thanks

1 Like