From 80bb8a108f29331cdb2f2695f6801beee104dc89 Mon Sep 17 00:00:00 2001
From: MohamedBassem <me@mbassem.com>
Date: Thu, 8 Feb 2024 15:14:23 +0000
Subject: [refactor] Move the different packages to the package subdir

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

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

diff --git a/packages/web/components/auth/login.tsx b/packages/web/components/auth/login.tsx
new file mode 100644
index 00000000..4cd55546
--- /dev/null
+++ b/packages/web/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

