import { cookies } from "next/headers";
import { ok } from "@/lib/response";
import {
  EMBED_DEMO_COOKIE,
  embedDemoCookieOptions,
} from "@/modules/embed-demo/auth";

/** POST /api/embed-demo/logout */
export async function POST() {
  const cookieStore = await cookies();
  cookieStore.set(EMBED_DEMO_COOKIE, "", {
    ...embedDemoCookieOptions(0),
  });
  return ok({ logged_out: true });
}
