added basic user auth flow

This commit is contained in:
makearmy 2025-09-26 11:46:01 -04:00
parent faa7372887
commit 5d2c668bad
7 changed files with 394 additions and 2 deletions

View file

@ -0,0 +1,9 @@
// app/app/api/auth/logout/route.ts
import { NextRequest, NextResponse } from "next/server";
import { clearAuthCookies } from "@/lib/auth-cookies";
export async function POST(_req: NextRequest) {
let res = NextResponse.json({ ok: true });
res = clearAuthCookies(res);
return res;
}