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