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, }; }