Hello @kkrp1,
Welcome back to the Auth0 community!
Unfortunately, there is no API
object provided within this flow. What you are trying to do is possible using the Management API. Check the following Solution for further information on this: Update User Metadata from Within a Post Change Password Action
I hope this was helpful.
Thanis,
Tudor