useCustomerPassword
Category:
Customer & Account
Composable for customer password management.
Types
ts
export function useCustomerPassword(): UseCustomerPasswordReturn
ts
export type UseCustomerPasswordReturn = {
/**
* Change customer's current password
*/
updatePassword(
updatePasswordData: operations["changePassword post /account/change-password"]["body"],
): Promise<
operations["changePassword post /account/change-password"]["response"]
>;
/**
* Reset customer's password
*/
resetPassword(
resetPasswordData: operations["sendRecoveryMail post /account/recovery-password"]["body"],
): Promise<
operations["sendRecoveryMail post /account/recovery-password"]["response"]
>;
};