Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

398 B
Raw Blame
import { cookies } from "next/headers";
import { endSession, SESSION_COOKIE } from "@/server/auth";

/** Sign out: this session ends on the server too (a copy of its cookie stops working), and the browser forgets it. */
export async function POST() {
  const jar = await cookies();
  endSession(jar.get(SESSION_COOKIE)?.value);
  jar.delete(SESSION_COOKIE);
  return Response.json({ ok: true });
}