Auth0 Home Blog Docs

app_metadata being removed after update



I have created a ‘Pre User Registration’ hook that adds a property to app_metadata when a user signs up, I then add that value to the users access token through a rule when it signs in. The property exists in the dashboard when I’m viewing the user and I can read the value in the access token. After the user signs in they enter some more information and I update the app_metadata with some more properties, the problem is that the previous property is removed.

It works if I enter the property manually in the dashboard right after the user have signed up.