Add OpenShell Control auth and installer

This commit is contained in:
Codex
2026-04-24 20:52:44 +00:00
parent 8e3b5332d4
commit ad8e25c056
27 changed files with 2057 additions and 298 deletions
+15
View File
@@ -0,0 +1,15 @@
import { NextResponse } from "next/server"
import { getAuthSettings } from "@/app/lib/controlAuth"
export async function POST() {
const settings = getAuthSettings()
const response = NextResponse.json({ ok: true })
response.cookies.set(settings.cookieName, "", {
httpOnly: true,
sameSite: "lax",
secure: process.env.NODE_ENV === "production",
path: "/",
maxAge: 0,
})
return response
}