From 083ea5bd19172381bb53e95aaf98eaabef839c54 Mon Sep 17 00:00:00 2001
From: MohamedBassem <me@mbassem.com>
Date: Tue, 6 Feb 2024 12:26:29 +0000
Subject: Move the web app into a subdir

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

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

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

