({
resolver: zodResolver(loginSchema),
@@ -100,26 +118,69 @@ const LoginPage = () => {
-
-
+
+
+
+
+
+
+
+
+
+
+
+ }
+ >
+ Sign in with Facebook
+
@@ -227,11 +288,11 @@ const LoginPage = () => {
-
+
-
+
Don't Have An Account?{" "}
diff --git a/src/app/(auth-routes)/register/page.tsx b/src/app/(auth-routes)/register/page.tsx
index 2c4d59ced..9e906bc13 100644
--- a/src/app/(auth-routes)/register/page.tsx
+++ b/src/app/(auth-routes)/register/page.tsx
@@ -2,6 +2,7 @@
import { zodResolver } from "@hookform/resolvers/zod";
import { DialogContent, DialogTitle } from "@radix-ui/react-dialog";
+import { signIn } from "next-auth/react";
import Link from "next/link";
import { useEffect, useState } from "react";
import { useForm } from "react-hook-form";
@@ -74,7 +75,7 @@ const SignUp = () => {
})();
};
- const handleSubmit = async () => {
+ const handleSubmit = () => {
form.handleSubmit(handleFormSubmit)();
};
@@ -91,11 +92,7 @@ const SignUp = () => {
isDisabled={!apiUrl}
variant="outline"
isLeftIconVisible={true}
- href={
- apiUrl === ""
- ? undefined
- : `${apiUrl}/api/v1/auth/social/google?provider=google`
- }
+ onClick={() => signIn("google")}
icon={