feat: redirect user to email verification page if not done (#2241)

This commit is contained in:
Shubham Palriwala
2024-03-21 16:13:01 +05:30
committed by GitHub
parent 26b8c4c7d5
commit 4dc5ace3f8

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);