Auth0 Home Blog Docs

How to reload user object in rules

I have a rule that redirects to my app, which updates the user metadata and then triggers the continue. However, I need to access the new metadata so I can include it in the access token, but the redirect doesn’t reload the user. So how can I do it in the rule?

Hi @calvin2,

One of the Auth0 engineers may correct me, but I don’t think you can manually reload the profile data. Profile data is read before the rules begin execution. In this case I believe you need to update the metadata and update the token yourself.


1 Like