From fa1df19f64e1ede9e2ce5f3abe7396d163f223af Mon Sep 17 00:00:00 2001 From: sohot8653 Date: Wed, 27 Aug 2025 16:33:18 +0900 Subject: [PATCH] =?UTF-8?q?[=EC=BD=94=EB=93=9C=20=EC=A0=95=EB=A6=AC]=20Cre?= =?UTF-8?q?ateMemberResponseDto=EC=97=90=EC=84=9C=20MemberRole=20=ED=95=84?= =?UTF-8?q?=EB=93=9C=20=EC=A0=9C=EA=B1=B0=20=EB=B0=8F=20JwtTokenValidation?= =?UTF-8?q?Filter=EC=97=90=EC=84=9C=20=EC=97=AD=ED=95=A0=20=EA=B4=80?= =?UTF-8?q?=EB=A0=A8=20=EC=BD=94=EB=93=9C=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/base/member/dto/CreateMemberResponseDto.java | 2 -- .../bio_backend/global/filter/JwtTokenValidationFilter.java | 6 ++---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/bio/bio_backend/domain/base/member/dto/CreateMemberResponseDto.java b/src/main/java/com/bio/bio_backend/domain/base/member/dto/CreateMemberResponseDto.java index 04b061d..3ed96c1 100644 --- a/src/main/java/com/bio/bio_backend/domain/base/member/dto/CreateMemberResponseDto.java +++ b/src/main/java/com/bio/bio_backend/domain/base/member/dto/CreateMemberResponseDto.java @@ -1,6 +1,5 @@ package com.bio.bio_backend.domain.base.member.dto; -import com.bio.bio_backend.domain.base.member.enums.MemberRole; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; @@ -16,7 +15,6 @@ public class CreateMemberResponseDto { private Long oid; private String userId; - private MemberRole role; private Boolean useFlag; private LocalDateTime createdAt; private LocalDateTime updatedAt; diff --git a/src/main/java/com/bio/bio_backend/global/filter/JwtTokenValidationFilter.java b/src/main/java/com/bio/bio_backend/global/filter/JwtTokenValidationFilter.java index 74f209b..a4ee234 100644 --- a/src/main/java/com/bio/bio_backend/global/filter/JwtTokenValidationFilter.java +++ b/src/main/java/com/bio/bio_backend/global/filter/JwtTokenValidationFilter.java @@ -88,17 +88,15 @@ public class JwtTokenValidationFilter extends OncePerRequestFilter { // 모든 검증을 통과한 경우 토큰 갱신 진행 String username = jwtUtils.extractUsername(refreshToken); - String role = jwtUtils.extractRole(refreshToken); // 새로운 Access Token 생성 - String newAccessToken = jwtUtils.generateToken(username, role, - Long.parseLong(Objects.requireNonNull(env.getProperty("token.expiration_time_access")))); + String newAccessToken = jwtUtils.generateToken(username, Long.parseLong(Objects.requireNonNull(env.getProperty("token.expiration_time_access")))); // 새로운 Access Token을 응답 헤더에 설정 response.setHeader("Authorization", "Bearer " + newAccessToken); // Refresh Token 갱신 - String newRefreshToken = jwtUtils.createRefreshToken(username, role, httpUtils.getClientIp()); + String newRefreshToken = jwtUtils.createRefreshToken(username, httpUtils.getClientIp()); jwtUtils.setRefreshTokenCookie(response, newRefreshToken); // 인증 정보 설정