Skip to content

Commit

Permalink
fix : refresh token 내용 성공
Browse files Browse the repository at this point in the history
  • Loading branch information
khw3754 committed Feb 19, 2024
1 parent e0db73d commit f8449f8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server/nest/src/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);

Expand All @@ -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,
);
}
Expand Down

0 comments on commit f8449f8

Please sign in to comment.