diff --git a/src/main/java/Ness/Backend/domain/auth/inmemory/entity/RefreshToken.java b/src/main/java/Ness/Backend/domain/auth/inmemory/entity/RefreshToken.java index 0a66438..b44d562 100644 --- a/src/main/java/Ness/Backend/domain/auth/inmemory/entity/RefreshToken.java +++ b/src/main/java/Ness/Backend/domain/auth/inmemory/entity/RefreshToken.java @@ -11,7 +11,7 @@ @Getter @NoArgsConstructor //@RedisHash(value = "refreshToken", timeToLive = 60*60*24*14) -@RedisHash(value = "refreshToken", timeToLive = 5) +@RedisHash(value = "refreshToken", timeToLive = 60*5) public class RefreshToken { /* Redis에 저장해서 RefreshToken이 유효한지 검증 */ @Id @Indexed @@ -29,6 +29,6 @@ public RefreshToken(String jwtRefreshToken, String authKey) { this.jwtRefreshToken = jwtRefreshToken; this.authKey = authKey; //this.ttl = 1000L * 60 * 60 * 24 * 14; - this.ttl = 1000L * 5; + this.ttl = 1000L * 60 * 5; } } \ No newline at end of file