From 97f8891861f542196e81f61c017f00315517f220 Mon Sep 17 00:00:00 2001 From: Oscar Date: Tue, 9 Jun 2026 10:30:17 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=92=20fix(auth.service.ts):=20=D0=A3?= =?UTF-8?q?=D0=B2=D0=B5=D0=BB=D0=B8=D1=87=D0=B8=D0=B2=D0=B0=D0=B5=D1=82=20?= =?UTF-8?q?=D1=81=D1=80=D0=BE=D0=BA=20=D0=B4=D0=B5=D0=B9=D1=81=D1=82=D0=B2?= =?UTF-8?q?=D0=B8=D1=8F=20refresh=20=D1=82=D0=BE=D0=BA=D0=B5=D0=BD=D0=B0?= =?UTF-8?q?=20=D0=B4=D0=BE=2060=20=D0=B4=D0=BD=D0=B5=D0=B9=20=D0=B4=D0=BB?= =?UTF-8?q?=D1=8F=20=D1=83=D0=BB=D1=83=D1=87=D1=88=D0=B5=D0=BD=D0=B8=D1=8F?= =?UTF-8?q?=20=D0=B1=D0=B5=D0=B7=D0=BE=D0=BF=D0=B0=D1=81=D0=BD=D0=BE=D1=81?= =?UTF-8?q?=D1=82=D0=B8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/auth/auth.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/auth/auth.service.ts b/src/auth/auth.service.ts index 78c3d59..50e51bb 100644 --- a/src/auth/auth.service.ts +++ b/src/auth/auth.service.ts @@ -145,14 +145,14 @@ export class AuthService { const accessToken = this.jwtService.sign(payload); const refreshToken = this.jwtService.sign( { ...payload, type: 'refresh' }, - { expiresIn: '30d' }, + { expiresIn: '60d' }, ); await this.redisService.set( `refresh_token:${userEntity.id}`, refreshToken, 'EX', - 60 * 60 * 24 * 30, + 60 * 60 * 24 * 60, ); return { accessToken, refreshToken };