diff --git a/src/main/java/com/example/mukgen/global/config/security/jwt/JwtTokenProvider.java b/src/main/java/com/example/mukgen/global/config/security/jwt/JwtTokenProvider.java index 0a527fa..4e0e1ed 100644 --- a/src/main/java/com/example/mukgen/global/config/security/jwt/JwtTokenProvider.java +++ b/src/main/java/com/example/mukgen/global/config/security/jwt/JwtTokenProvider.java @@ -42,9 +42,9 @@ public TokenResponse createToken(String accountId) { return TokenResponse.builder() .accessToken(accessToken) - .accessTokenExp(Date(now.getTime() + jwtProperties.getAccessExpiredExp)) + .accessTokenExp(new Date(now.getTime() + jwtProperties.getAccessExpiredExp())) .refreshToken(refreshToken) - .refreshTokenExp(Date(now.getTime() + jwtProperties.getRefreshExpiredExp)) + .refreshTokenExp(new Date(now.getTime() + jwtProperties.getRefreshExpiredExp())) .build(); }