Forgot password
useResetPassword
How to use?
Import the hook
useResetPassword
import {useResetPassword} from 'LinkerStudio/modules/authentication/common/hooks';Add this block code
const [resetPassword, resetPasswordIsLoading, successResetPassword] = useResetPassword();How to reset password?
Import
userForgotPasswordfunction that resets the password, triggering an email with a link to reset the password.
import {userForgotPassword} from 'LinkerStudio/modules/authentication/Auth0/utils/Auth0Helper';const resetPassword = async (userEmail: string) => {
try {
const response = await userForgotPassword(userEmail);
} catch (error) {
return error
}
};Last updated
Was this helpful?