diff options
Diffstat (limited to 'web/components/auth/login.tsx')
| -rw-r--r-- | web/components/auth/login.tsx | 17 |
1 files changed, 17 insertions, 0 deletions
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> + ); +}; |
