fix(auth): allow HTTP for local network

This commit is contained in:
decolua
2026-02-04 12:39:26 +07:00
parent f47dfcde1c
commit 0a394d0d9a

View File

@@ -34,7 +34,7 @@ export async function POST(request) {
const cookieStore = await cookies();
cookieStore.set("auth_token", token, {
httpOnly: true,
secure: process.env.NODE_ENV === "production",
secure: false, // Allow HTTP for local network access
sameSite: "lax",
path: "/",
});