We have been using auth0 for awhile in our application, and we moved rules to actions awhile back and we realize it is not working as expected, meaning user app meta data is not updated.
for post registration,
exports.onExecutePostUserRegistration = async (event) => {
event.user.app_metadata.sample_field = 'some field we want to update to'
}
for post login
exports.onExecutePostLogin = async (event, api) => {
api.user.setAppMetadata('sample_field', 'some field we want to update to')
}
User app metadata is not being updated either way, both actions are called and there is no error regarding any of the actions.
is this way of updating user app metadata no longer supported?
As this topic is related to Actions and Rules & Hooks are being deprecated soon in favor of Actions, I’m excited to let you know about our next Ask me Anything session in the Forum on Thursday, January 18 with the Rules, Hooks and Actions team on Rules & Hooks and why Actions matter! Submit your questions in the thread above and our esteemed product experts will provide written answers on January 18. Find out more about Rules & Hooks and why Actions matter! Can’t wait to see you there!