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