From 8e2fa8b79cff4907ef91bf41bdb6ccc42b733f8e Mon Sep 17 00:00:00 2001 From: 1223v <1223v@naver.com> Date: Mon, 4 Mar 2024 21:39:56 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=EC=BF=A0=ED=82=A4=20=EC=9D=B8=EC=A6=9D?= =?UTF-8?q?=EB=B0=A9=EC=8B=9D=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../security/jwt/service/JwtServiceImpl.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/readyvery/readyverydemo/security/jwt/service/JwtServiceImpl.java b/src/main/java/com/readyvery/readyverydemo/security/jwt/service/JwtServiceImpl.java index 4cdaa28..d5c46cd 100644 --- a/src/main/java/com/readyvery/readyverydemo/security/jwt/service/JwtServiceImpl.java +++ b/src/main/java/com/readyvery/readyverydemo/security/jwt/service/JwtServiceImpl.java @@ -79,14 +79,14 @@ public Optional extractRefreshToken(HttpServletRequest request) { @Override public Optional extractAccessToken(HttpServletRequest request) { // "Authorization" 헤더를 확인합니다. - //String authorizationHeader = request.getHeader(AUTHORIZATION); + String authorizationHeader = request.getHeader(AUTHORIZATION); // "Authorization" 헤더가 존재하면, 헤더에서 토큰을 추출합니다. - //if (authorizationHeader != null && !authorizationHeader.isEmpty()) { - return extractToken.extractTokenHeader(request, AUTHORIZATION); - //} + if (authorizationHeader != null && !authorizationHeader.isEmpty()) { + return extractToken.extractTokenHeader(request, AUTHORIZATION); + } // "Authorization" 헤더가 존재하지 않으면, 쿠키에서 토큰을 추출합니다. - //return extractToken.extractTokenCookie(request, jwtConfig.getAccessTokenName()); + return extractToken.extractTokenCookie(request, jwtConfig.getAccessTokenName()); }