This commit is contained in:
2026-03-11 04:16:51 +00:00
parent 33044fae23
commit 2e0009e3ca
13 changed files with 152 additions and 10 deletions
+23
View File
@@ -0,0 +1,23 @@
import logoutUser from "@/src/functions/auth/logout-user";
import Layout from "@/src/layouts/login";
import H2 from "@/twui/components/layout/H2";
import { GetServerSideProps } from "next";
export default function LogoutPage() {
return (
<Layout>
<H2>Loging out ...</H2>
</Layout>
);
}
export const getServerSideProps: GetServerSideProps = async (ctx) => {
await logoutUser({ res: ctx.res });
return {
redirect: {
destination: `/login`,
statusCode: 307,
},
};
};