Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ public String createAccessToken(Optional<UserEntity> user){
log.info("creating access token");


//Date expiryDate = Date.from(Instant.now().plus(1, ChronoUnit.HOURS));
// 테스트 용 만료시간 2분
Date expiryDate = Date.from(Instant.now().plus(2, ChronoUnit.MINUTES));
Date expiryDate = Date.from(Instant.now().plus(1, ChronoUnit.HOURS));
log.info("set access token expiryDate: {}", expiryDate);

return Jwts.builder()
Expand All @@ -44,9 +42,7 @@ public String createAccessToken(Optional<UserEntity> user){
public String createRefreshToken(Optional<UserEntity> user){
log.info("creating refresh token");

//Date expiryDate = Date.from(Instant.now().plus(1, ChronoUnit.DAYS));
// 테스트 용 만료시간 5분
Date expiryDate = Date.from(Instant.now().plus(5, ChronoUnit.MINUTES));
Date expiryDate = Date.from(Instant.now().plus(1, ChronoUnit.DAYS));
log.info("set refresh token expiryDate: {}", expiryDate);

return Jwts.builder()
Expand Down