aboutsummaryrefslogtreecommitdiffstats
path: root/components/auth/logout.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'components/auth/logout.tsx')
-rw-r--r--components/auth/logout.tsx12
1 files changed, 12 insertions, 0 deletions
diff --git a/components/auth/logout.tsx b/components/auth/logout.tsx
new file mode 100644
index 00000000..87391c84
--- /dev/null
+++ b/components/auth/logout.tsx
@@ -0,0 +1,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>
+ );
+};