Skip to content

Commit

Permalink
Fix(#41): 토큰 만료 주기 임시 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
nohy6630 committed Oct 23, 2023
1 parent abfaa8c commit 3785589
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3785589

Please sign in to comment.