import { NextResponse } from "next/server"; import { cookies } from "next/headers"; import { checkCsrf } from "@/lib/apiUtils"; export async function POST() { const csrfError = await checkCsrf(); if (csrfError) return csrfError; const cookieStore = await cookies(); cookieStore.delete("medusa_auth_token"); return NextResponse.json({ success: true }); }