aboutsummaryrefslogtreecommitdiffstats
path: root/components/auth/logout.tsx
blob: 87391c84ffeaabce91733863fde320f1c14f1691 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
"use client";
import { signOut } from "next-auth/react";

export const LogoutButton = () => {
  return (
    <button className="btn btn-ghost normal-case" onClick={() => signOut({
      callbackUrl: "/",
    })}>
      Sign Out
    </button>
  );
};