diff --git a/src/main/java/com/dnd/jjakkak/domain/jwt/provider/JwtProvider.java b/src/main/java/com/dnd/jjakkak/domain/jwt/provider/JwtProvider.java index 15be416..59337e3 100644 --- a/src/main/java/com/dnd/jjakkak/domain/jwt/provider/JwtProvider.java +++ b/src/main/java/com/dnd/jjakkak/domain/jwt/provider/JwtProvider.java @@ -47,7 +47,10 @@ public JwtProvider(JjakkakProperties jjakkakProperties, TokenProperties tokenPro * @return JWT */ public String createAccessToken(String kakaoId) { - Date expiredDate = Date.from(Instant.now().plus(accessTokenExpirationDay, ChronoUnit.DAYS)); + +// Date expiredDate = Date.from(Instant.now().plus(accessTokenExpirationDay, ChronoUnit.DAYS)); + Date expiredDate = Date.from(Instant.now().plus(1, ChronoUnit.MINUTES)); + return Jwts.builder() .signWith(key, SignatureAlgorithm.HS256) @@ -66,7 +69,8 @@ public String createAccessToken(String kakaoId) { * @return JWT */ public String createRefreshToken(String kakaoId) { - Date expiredDate = Date.from(Instant.now().plus(refreshTokenExpirationDay, ChronoUnit.DAYS)); +// Date expiredDate = Date.from(Instant.now().plus(refreshTokenExpirationDay, ChronoUnit.DAYS)); + Date expiredDate = Date.from(Instant.now().plus(2, ChronoUnit.MINUTES)); return Jwts.builder() .signWith(key, SignatureAlgorithm.HS256)