From b7fc3344e3f3c898388831dbfad084cebdd64bb3 Mon Sep 17 00:00:00 2001
From: MohamedBassem <me@mbassem.com>
Date: Mon, 5 Feb 2024 17:07:32 +0000
Subject: Init NextAuth

---
 components/auth/login.tsx | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 components/auth/login.tsx

(limited to 'components/auth/login.tsx')

diff --git a/components/auth/login.tsx b/components/auth/login.tsx
new file mode 100644
index 00000000..4cd55546
--- /dev/null
+++ b/components/auth/login.tsx
@@ -0,0 +1,17 @@
+"use client";
+import { signIn } from "next-auth/react";
+
+export const LoginButton = () => {
+  return (
+    <button
+      className="btn btn-primary"
+      onClick={() =>
+        signIn(undefined, {
+          callbackUrl: "/",
+        })
+      }
+    >
+      Sign in
+    </button>
+  );
+};
-- 
cgit v1.2.3-70-g09d2

