How can we access user properties data and custom user properties data in function

How can we access user properties data and custom user properties data in function

You can use data.user to access user properties.

For example data.user.phone, data.user.email