Skip to content

Commit

Permalink
fix: token 만료시간 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jun3327 committed Nov 14, 2024
1 parent bc0ddd4 commit 343f358
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@ public class JwtTokenProvider {

private static final String MEMBER_ID = "memberId";

// TODO: access token 유효 기간
// ACCESS_TOKEN : 1분
private static final Long ACCESS_TOKEN_EXPIRATION_TIME = 1000L * 60;
// REFRESH_TOKEN : 7일
// private static final Long REFRESH_TOKEN_EXPIRATION_TIME = 1000L * 60 * 60 * 24 * 7;
private static final Long REFRESH_TOKEN_EXPIRATION_TIME = 1000L * 60 * 3;
// 1000L = 1초
// ACCESS_TOKEN : 2시간
private static final Long ACCESS_TOKEN_EXPIRATION_TIME = 1000L * 60 * 60 * 2;
// REFRESH_TOKEN : 14일
private static final Long REFRESH_TOKEN_EXPIRATION_TIME = 1000L * 60 * 60 * 24 * 14;

@Value("${jwt.secret}")
private String JWT_SECRET;
Expand Down

0 comments on commit 343f358

Please sign in to comment.