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; }