From f8449f8958e25c2cc7a9f1f25600ad4814e44a43 Mon Sep 17 00:00:00 2001 From: hyungun Date: Mon, 19 Feb 2024 16:55:39 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20refresh=20token=20=EB=82=B4=EC=9A=A9?= =?UTF-8?q?=20=EC=84=B1=EA=B3=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/nest/src/auth/auth.service.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/nest/src/auth/auth.service.ts b/server/nest/src/auth/auth.service.ts index 923bd93..44cef67 100644 --- a/server/nest/src/auth/auth.service.ts +++ b/server/nest/src/auth/auth.service.ts @@ -142,7 +142,7 @@ export class AuthService { const newRefreshTokenUuid = v4(); const newAccessToken = this.jwtService.sign(payload); const newRefreshToken = this.jwtService.sign( - { newRefreshTokenUuid }, + { refresh_id: newRefreshTokenUuid }, this.refreshOptions, ); @@ -156,10 +156,12 @@ export class AuthService { if (error instanceof CatchyException) { throw error; } + this.logger.error(`auth.service - refreshTokens : SERVICE_ERROR`); + console.log(error); throw new CatchyException( 'SERVICE_ERROR', - HTTP_STATUS_CODE.BAD_REQUEST, + HTTP_STATUS_CODE.SERVER_ERROR, ERROR_CODE.SERVICE_ERROR, ); }