Skip to content
Merged
Show file tree
Hide file tree
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 @@ -18,7 +18,7 @@ public class AuthValueConfig {
private Long accessTokenExpirationTime;

// public static final Long ACCESS_TOKEN_EXPIRATION_TIME = 1000 * 60 * 60 * 24 * 14L;
public static final Long REFRESH_TOKEN_EXPIRATION_TIME = 1000 * 60 * 60 * 24 * 14L; // 2주
public static final Long REFRESH_TOKEN_EXPIRATION_TIME = 1000 * 60 * 60 * 24 * 30L; // 30일

@PostConstruct
protected void init() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public JwtToken reissueToken(String requestRefreshToken, Long memberId) {
}

private void saveRefreshTokenToRedis(Long memberId, String refreshToken) {
redisTemplate.opsForValue().set(memberId.toString(), refreshToken, Duration.ofDays(14));
redisTemplate.opsForValue().set(memberId.toString(), refreshToken, Duration.ofMillis(REFRESH_TOKEN_EXPIRATION_TIME));
}

private String getRefreshTokenFromRedis(Long memberId) {
Expand Down
Loading