Problem statement
Is it possible to update user metadata from within a post change password action?
Solution
It is not possible to directly update user metadata from within a post change password action. There is no API
object provided within this flow. Additionally, the event.user
object does not include metadata and only includes information directly pertinent to the password change.
With this in mind, use the Management API to update the user’s metadata. This can be done directly within the action or from the backend of one’s service invoked from within the action.
For details on how to use the management API within actions please refer to this article.