fix(auth): correct local cookie security configuration

This commit is contained in:
Schubert Ferenc 2026-07-11 15:50:15 +02:00
parent b584e60273
commit 155fdbb16a
67 changed files with 1003 additions and 62 deletions

View file

@ -0,0 +1,13 @@
import { cookies } from "next/headers";
import { NextResponse } from "next/server";
import { AUTH_COOKIE_NAME, buildAuthCookieOptions } from "@/lib/auth";
export async function POST() {
const cookieStore = await cookies();
cookieStore.set({
name: AUTH_COOKIE_NAME,
value: "",
...buildAuthCookieOptions(0)
});
return NextResponse.json({ status: "ok" });
}