lomavuokraus/app/api/auth/logout/route.ts
Tero Halla-aho 0bb709d9c5
Some checks failed
CI / checks (push) Has been cancelled
chore: fix audit alerts and formatting
2026-02-04 12:43:03 +02:00

8 lines
255 B
TypeScript

import { NextResponse } from "next/server";
import { clearSessionCookie } from "../../../../lib/jwt";
export async function POST() {
const res = NextResponse.json({ ok: true });
res.headers.append("Set-Cookie", clearSessionCookie());
return res;
}