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; }