fix(auth): correct local cookie security configuration
This commit is contained in:
parent
b584e60273
commit
155fdbb16a
67 changed files with 1003 additions and 62 deletions
13
validation-suite/frontend/atlas/app/api/logout/route.ts
Normal file
13
validation-suite/frontend/atlas/app/api/logout/route.ts
Normal 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" });
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue