2024-12-27 03:24:35 +01:00

15 lines
299 B
TypeScript

'use client';
import { signOut } from 'next-auth/react';
export default function LogoutButton() {
return (
<button
type="button"
className="w-full rounded-md bg-indigo-500 p-3 text-white"
onClick={() => signOut({ callbackUrl: '/' })}
>
Logout
</button>
);
}