import { NextResponse } from "next/server"; import { getSession, revokeSession, clearSessionCookie } from "@/lib/auth"; export async function POST() { const s = await getSession(); if (s) await revokeSession(s.id); await clearSessionCookie(); return NextResponse.json({ ok: true }, { headers: { "Clear-Site-Data": '"cache", "storage"' } }); }