From eadd276c29a3ac24234e2e3e3e2b124ed50c9655 Mon Sep 17 00:00:00 2001 From: cfngc4594 Date: Fri, 14 Mar 2025 14:35:07 +0800 Subject: [PATCH] feat(auth): add GitHubSignIn component --- src/components/github-sign-in.tsx | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/components/github-sign-in.tsx diff --git a/src/components/github-sign-in.tsx b/src/components/github-sign-in.tsx new file mode 100644 index 0000000..85cd0dd --- /dev/null +++ b/src/components/github-sign-in.tsx @@ -0,0 +1,23 @@ +import { signIn } from "@/lib/auth"; +import { Button } from "@/components/ui/button"; + +export function GithubSignIn() { + return ( +
{ + "use server"; + await signIn("github"); + }} + > + +
+ ); +}