From 733f9a38f04398069813db6c64cb8b7cd62986c4 Mon Sep 17 00:00:00 2001 From: jackrescuer-gif Date: Tue, 19 May 2026 13:31:36 +0300 Subject: [PATCH] =?UTF-8?q?chore(auth):=20=D0=BF=D1=80=D0=BE=D0=B4=D0=BB?= =?UTF-8?q?=D0=B8=D1=82=D1=8C=20access=20token=20=D0=B4=D0=BE=202=D1=87=20?= =?UTF-8?q?=D0=B4=D0=BB=D1=8F=20=D0=B4=D0=B5=D0=BC=D0=BE-=D1=81=D1=82?= =?UTF-8?q?=D0=B5=D0=BD=D0=B4=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Дефолт JWT_EXPIRES_IN: 1h → 2h. Refresh token остаётся 7d. --- .env.production.example | 2 +- backend/src/config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.production.example b/.env.production.example index a171870..c0e2cb4 100644 --- a/.env.production.example +++ b/.env.production.example @@ -12,7 +12,7 @@ REDIS_CACHE_TTL_SECONDS=60 JWT_SECRET=CHANGE_ME_min_32_chars_random_string_here JWT_REFRESH_SECRET=CHANGE_ME_another_min_32_chars_random_string -JWT_EXPIRES_IN=1h +JWT_EXPIRES_IN=2h JWT_REFRESH_EXPIRES_IN=7d # Frontend URL (for CORS) diff --git a/backend/src/config.ts b/backend/src/config.ts index 59f1a54..98f7e84 100644 --- a/backend/src/config.ts +++ b/backend/src/config.ts @@ -11,7 +11,7 @@ const envSchema = z.object({ DATABASE_URL: z.string(), JWT_SECRET: z.string().min(10), JWT_REFRESH_SECRET: z.string().min(10), - JWT_EXPIRES_IN: z.string().default('1h'), + JWT_EXPIRES_IN: z.string().default('2h'), JWT_REFRESH_EXPIRES_IN: z.string().default('7d'), PORT: z.coerce.number().default(3101), NODE_ENV: z.enum(['development', 'production', 'test', 'e2e']).default('development'),