Skip to main content

useForgotPassword

This hook allows you to send a reset password email to a customer.

propsTypeDescriptionExample
controlObjectThis is the react-hook-form control object
handleSubmitFunctionhandle submit
formStateObjectThis is the react-hook-form formState object
submitFunctionsubmit forgot password
isLoadingBooleanloading statefalse
isSuccessBooleansuccess statefalse

Usage


import { useForgotPassword } from '@appmaker-xyz/core';

const {
control,
handleSubmit,
formState,
submit,
isLoading,
isSuccess,
} = useForgotPassword();