fix(auth): allow HTTP for local network
This commit is contained in:
parent
f47dfcde1c
commit
0a394d0d9a
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ export async function POST(request) {
|
||||||
const cookieStore = await cookies();
|
const cookieStore = await cookies();
|
||||||
cookieStore.set("auth_token", token, {
|
cookieStore.set("auth_token", token, {
|
||||||
httpOnly: true,
|
httpOnly: true,
|
||||||
secure: process.env.NODE_ENV === "production",
|
secure: false, // Allow HTTP for local network access
|
||||||
sameSite: "lax",
|
sameSite: "lax",
|
||||||
path: "/",
|
path: "/",
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue