Files
workparking/app/api/admin/logout/route.ts
deonisii 4f67bca4be
All checks were successful
Auto Deploy / deploy (push) Successful in 1m7s
add crm auth, email, status update and search
2026-04-17 21:29:14 +03:00

18 lines
375 B
TypeScript

import { NextResponse } from "next/server";
import { getSessionCookieName } from "@/lib/auth";
export async function POST() {
const response = NextResponse.json({ success: true });
response.cookies.set({
name: getSessionCookieName(),
value: "",
httpOnly: true,
secure: true,
sameSite: "lax",
path: "/",
maxAge: 0,
});
return response;
}