SPB Git

Repository Public

route.ts 306 B 11 lines typescript

1import { NextResponse } from "next/server";2import { SESSION_COOKIE } from "@/lib/auth";34export const dynamic = "force-dynamic";56export async function POST() {7  const res = NextResponse.json({ ok: true });8  res.cookies.set(SESSION_COOKIE, "", { httpOnly: true, path: "/", maxAge: 0 });9  return res;10}11
Files main
Menu

Theme