Skip to content

Commit e3fa008

Browse files
committed
Temporarily bypass login by default
1 parent 2b3d990 commit e3fa008

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎api/_auth.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ export type SessionOperator = { id: string; fullName: string; email: string; rol
99
declare const process:{env:Record<string,string|undefined>};
1010
const COOKIE = "pescamar_session";
1111
const SESSION_DAYS = 7;
12-
const TEMPORARY_AUTH_BYPASS = process.env.AUTH_BYPASS === "true";
12+
// Temporary rollout mode: authentication is bypassed unless explicitly disabled.
13+
// Set AUTH_BYPASS=false in Vercel to restore real operator sessions without changing code.
14+
const TEMPORARY_AUTH_BYPASS = process.env.AUTH_BYPASS !== "false";
1315
const TEMPORARY_OPERATOR: SessionOperator = {
1416
id: "1604b454-ef8a-448a-8788-136f6b224168",
1517
fullName: "Sebastián",

0 commit comments

Comments
 (0)