From 8dce44521f3c0969759eec3a519d18bc10995677 Mon Sep 17 00:00:00 2001 From: 1223v <1223v@naver.com> Date: Sat, 9 Mar 2024 00:36:42 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20JWT=20=EC=9D=B8=EC=A6=9D=20=EB=B0=A9?= =?UTF-8?q?=EC=8B=9D=20=ED=97=A4=EB=8D=94=EB=A1=9C=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 e09c7b1..c17488b 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 @@ -81,15 +81,15 @@ 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()); }