aboutsummaryrefslogtreecommitdiffstats
path: root/components/auth/login.tsx
blob: 4cd55546cf9594a51b91bd15d00f48dea7403131 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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>
  );
};