feat: redirect user to email verification page if not done

This commit is contained in:
ShubhamPalriwala
2024-03-14 21:02:11 +05:30
parent 0332a2efe3
commit b141561c96

View File

@@ -68,6 +68,11 @@ export const SigninForm = ({
return;
}
if (signInResponse?.error === "Email Verification is Pending") {
router.push(`/auth/verification-requested?email=${data.email}`);
return;
}
if (signInResponse?.error) {
setLoggingIn(false);
setSignInError(signInResponse.error);