Hi @scott8,
Thanks for reaching out to the Auth0 Community!
I understand that you’re trying to migrate from Auth0 Hooks to Actions and have issues updating the user’s app_metadata.
After testing your code snippet, I can confirm that it works and the user’s app_metadata is being updated with the correct information. You can verify by checking the user’s profile either on the Auth0 Dashboard or with the Management API v2 Get a user endpoint.
Now, if you plan on using the new metadata for additional logic, you’ll need to use event.user.app_metadata = resp.body.app_metadata;
as well to be able to see the current user’s app_metadata.
Hoped this helps!
Please let me know if there’s anything else I can do to help.
Thank you.