From c53f2bfbc9d20f88ea069685756cea9e7d945030 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=97=D0=B0=D0=B8=D0=B4=20=D0=9E=D0=BC=D0=B0=D1=80=20?= =?UTF-8?q?=D0=9C=D0=B5=D0=B4=D1=85=D0=B0=D1=82=20=7C=20Zaid=20Omar=20Medh?= =?UTF-8?q?at?= Date: Tue, 27 Jan 2026 15:03:04 +0500 Subject: [PATCH] fix --- src/auth/auth.service.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/auth/auth.service.ts b/src/auth/auth.service.ts index 1429e39..5063476 100644 --- a/src/auth/auth.service.ts +++ b/src/auth/auth.service.ts @@ -118,18 +118,18 @@ export class AuthService { } getCookieOptions(isRefreshToken = false) { - const isProduction = - this.configService.get("NODE_ENV") === "production"; - const cookieSecure = - this.configService.get("COOKIE_SECURE") === "true"; - const domain = this.configService.get("COOKIE_DOMAIN"); + // const isProduction = + // this.configService.get("NODE_ENV") === "production"; + // const cookieSecure = + // this.configService.get("COOKIE_SECURE") === "true"; + // const domain = this.configService.get("COOKIE_DOMAIN"); return { httpOnly: true, - secure: isProduction || cookieSecure, + // secure: isProduction || cookieSecure, sameSite: "none" as const, path: isRefreshToken ? "/auth/refresh" : "/", - domain: domain, + // domain: domain, maxAge: isRefreshToken ? 7 * 24 * 60 * 60 * 1000 : 15 * 60 * 1000, }; }