Files
var-monorepo/apps/dispatch/app/(auth)/logout/page.tsx
2025-02-25 00:45:36 +01:00

17 lines
292 B
TypeScript

"use client";
import { signOut } from "next-auth/react";
import { useEffect } from "react";
export default () => {
useEffect(() => {
signOut({
callbackUrl: "/login",
});
}, []);
return (
<div className="card-body">
<h1 className="text-5xl">logging out...</h1>
</div>
);
};