useCustomerRecoverPassword

A customer hook that helps you easily recover a customer password via email

// import
import { useCustomerRecoverPassword } from '@backpackjs/storefront';

// instantiation
const { recoverPassword, ...recoverStatus } = useCustomerRecoverPassword();

// use
const emailSent = await recoverPassword({ email });

required props

email

a registered customer email associated with the password

returns

emailSent

true || false if a recover password email was sent to the given email address

Last updated