From 64454583de519a654403cfde4809952f2a42a900 Mon Sep 17 00:00:00 2001 From: edder773 Date: Wed, 4 Dec 2024 17:49:12 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20=ED=86=A0=ED=81=B0=20time=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/backend/src/auth/auth.module.ts | 2 +- apps/backend/src/auth/auth.service.ts | 2 +- apps/backend/src/websocket/websocket.module.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/backend/src/auth/auth.module.ts b/apps/backend/src/auth/auth.module.ts index 1727f9a..e618d15 100644 --- a/apps/backend/src/auth/auth.module.ts +++ b/apps/backend/src/auth/auth.module.ts @@ -18,7 +18,7 @@ import { APP_GUARD } from '@nestjs/core'; inject: [ConfigService], useFactory: async (configService: ConfigService) => ({ secret: configService.get('JWT_SECRET'), - signOptions: { expiresIn: '1h' } + signOptions: { expiresIn: '24h' } }) }) ], diff --git a/apps/backend/src/auth/auth.service.ts b/apps/backend/src/auth/auth.service.ts index 890852f..301f91c 100644 --- a/apps/backend/src/auth/auth.service.ts +++ b/apps/backend/src/auth/auth.service.ts @@ -107,7 +107,7 @@ export class AuthService { private async generateTokens(memberId: number, nickname: string) { const payload = { memberId, nickname }; - const accessToken = this.jwtService.sign(payload, { expiresIn: '1h' }); + const accessToken = this.jwtService.sign(payload, { expiresIn: '24h' }); const refreshToken = this.jwtService.sign(payload, { expiresIn: '7d' }); return { accessToken, refreshToken }; } diff --git a/apps/backend/src/websocket/websocket.module.ts b/apps/backend/src/websocket/websocket.module.ts index 81eea47..dc82024 100644 --- a/apps/backend/src/websocket/websocket.module.ts +++ b/apps/backend/src/websocket/websocket.module.ts @@ -13,7 +13,7 @@ import { ChartModule } from 'src/chart/chart.module'; inject: [ConfigService], useFactory: async (configService: ConfigService) => ({ secret: configService.get('JWT_SECRET'), - signOptions: { expiresIn: '1h' } + signOptions: { expiresIn: '24h' } }) }), forwardRef(() => ChartModule)