diff --git a/src/main/java/com/numberone/backend/domain/token/entity/Token.java b/src/main/java/com/numberone/backend/domain/token/entity/Token.java index 0778a852..11fe3b53 100644 --- a/src/main/java/com/numberone/backend/domain/token/entity/Token.java +++ b/src/main/java/com/numberone/backend/domain/token/entity/Token.java @@ -11,7 +11,7 @@ import java.io.Serializable; @Getter -@RedisHash(value = "token", timeToLive = 60 * 60 * 24 * 14)//@Entity가 RDBMS에 테이블을 생성했다면 @RedisHash는 Redis에 테이블(?)을 생성 +@RedisHash(value = "token", timeToLive = 60 * 10)//@Entity가 RDBMS에 테이블을 생성했다면 @RedisHash는 Redis에 테이블(?)을 생성 public class Token implements Serializable { @Id private String email; diff --git a/src/main/java/com/numberone/backend/domain/token/service/TokenService.java b/src/main/java/com/numberone/backend/domain/token/service/TokenService.java index 64400c98..81e2d81e 100644 --- a/src/main/java/com/numberone/backend/domain/token/service/TokenService.java +++ b/src/main/java/com/numberone/backend/domain/token/service/TokenService.java @@ -30,8 +30,8 @@ public class TokenService { private final MemberService memberService; private final TokenRepository tokenRepository; private final MemberRepository memberRepository; - private long refreshPeroid = 1000L * 60 * 60 * 24 * 14;//14일 - private long accessPeroid = 1000L * 60 * 30;//30분 + private long refreshPeroid = 1000L * 60 * 10;//10분 + private long accessPeroid = 1000L * 60 * 5;//5분 @Transactional public GetTokenResponse loginKakao(GetTokenRequest tokenRequest) {