import { cookies } from "next/headers"; import { NextResponse } from "next/server"; import { COOKIE_DOMAIN, REFRESH_TOKEN } from "@/shared/config"; export async function POST() { const cookieStore = await cookies(); cookieStore.delete({ name: REFRESH_TOKEN, domain: COOKIE_DOMAIN }); return NextResponse.json({ message: "Logged out" }, { status: 200 }); }