From 0fd1c32022b6468093afc883b2d35ff993732499 Mon Sep 17 00:00:00 2001 From: limju Date: Fri, 1 Dec 2023 11:19:35 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20token=20=EC=83=9D=EC=84=B1=EC=8B=9C=20r?= =?UTF-8?q?efresh=20token=20=EC=9C=A0=ED=9A=A8=EA=B8=B0=EA=B0=84=EB=8F=84?= =?UTF-8?q?=20return=20=EB=B0=9B=EB=8F=84=EB=A1=9D=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/kr/xit/core/spring/auth/jwt/JwtTokenProvider.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mens-core/src/main/java/kr/xit/core/spring/auth/jwt/JwtTokenProvider.java b/mens-core/src/main/java/kr/xit/core/spring/auth/jwt/JwtTokenProvider.java index bfc8564..a87ec4d 100644 --- a/mens-core/src/main/java/kr/xit/core/spring/auth/jwt/JwtTokenProvider.java +++ b/mens-core/src/main/java/kr/xit/core/spring/auth/jwt/JwtTokenProvider.java @@ -93,6 +93,7 @@ public class JwtTokenProvider { .authorizationType(JwtToken.HEADER_NAME.getCode()) .accessToken(accessToken) .accessTokenExpiresIn(accessTokenExpiresIn.getTime()) + .refreshTokenExpiresIn(refreshTokenExpiresIn.getTime()) .refreshToken(refreshToken) .build(); } @@ -167,7 +168,7 @@ public class JwtTokenProvider { public String resolveAccessToken(HttpServletRequest request) { String bearerToken = request.getHeader(JwtToken.HEADER_NAME.getCode()); if (StringUtils.hasText(bearerToken) && bearerToken.startsWith(JwtToken.GRANT_TYPE.getCode())) { - return bearerToken.substring(JwtToken.GRANT_TYPE.getCode().length()+1); + return bearerToken.substring(JwtToken.GRANT_TYPE.getCode().length()+2); } return null; }