aboutsummaryrefslogtreecommitdiff
path: root/web/src/app/components/sign-in.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'web/src/app/components/sign-in.jsx')
-rw-r--r--web/src/app/components/sign-in.jsx14
1 files changed, 14 insertions, 0 deletions
diff --git a/web/src/app/components/sign-in.jsx b/web/src/app/components/sign-in.jsx
new file mode 100644
index 0000000..bb891c7
--- /dev/null
+++ b/web/src/app/components/sign-in.jsx
@@ -0,0 +1,14 @@
+import { signIn } from "@/lib/auth"
+
+export default function SignIn() {
+ return (
+ <form
+ action={async () => {
+ "use server"
+ await signIn("discord")
+ }}
+ >
+ <button type="submit">Login with Discord</button>
+ </form>
+ )
+}