export function update
This commit is contained in:
parent
a6e52c5f67
commit
9261fbc165
2 changed files with 26 additions and 9 deletions
|
|
@ -1,9 +1,11 @@
|
|||
// app/app/api/auth/logout/route.ts
|
||||
// app/api/auth/logout/route.ts
|
||||
import { NextRequest, NextResponse } from "next/server";
|
||||
import { clearAuthCookies } from "@/lib/auth-cookies";
|
||||
|
||||
export const runtime = "nodejs";
|
||||
|
||||
export async function POST(_req: NextRequest) {
|
||||
let res = NextResponse.json({ ok: true });
|
||||
res = clearAuthCookies(res);
|
||||
const res = NextResponse.json({ ok: true });
|
||||
clearAuthCookies(res);
|
||||
return res;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue