Skip to content

Commit

Permalink
feat: 토큰 만료시간 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
f1v3-dev committed Nov 27, 2024
1 parent b3dfb87 commit ae39150
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit ae39150

Please sign in to comment.