Hooks
useResendConfirmEmail
AUTH_RESEND_VERIFICATION_EMAIL='auth/verification-email'How to use?
import {useResendConfirmEmail} from 'LinkerStudio/modules/authentication/common/hooks';const [resendEmail, isLoadingResendEmail] = useResendConfirmEmail();How to send confirm email?
import UserService from 'LinkerStudio/modules/authentication/common/services/auth/AuthService';
const resendEmail = async () => {
try {
await UserService.resendVerificationEmail();
} catch (error) {
return error
}
}Last updated