Forgot password
useResetPassword
How to use?
import {useResetPassword} from 'LinkerStudio/modules/authentication/common/hooks';const [resetPassword, resetPasswordIsLoading, successResetPassword] = useResetPassword();How to reset 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