Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[🚀feat] 22차 배포 #139

Merged
merged 1 commit into from
Jul 10, 2024
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 @@ -10,8 +10,7 @@

@Getter
@NoArgsConstructor
//@RedisHash(value = "refreshToken", timeToLive = 60*60*24*14)
@RedisHash(value = "refreshToken", timeToLive = 60*5)
@RedisHash(value = "refreshToken", timeToLive = 60*60*24*14)
public class RefreshToken { /* Redis에 저장해서 RefreshToken이 유효한지 검증 */
@Id
@Indexed
Expand All @@ -28,7 +27,6 @@ public class RefreshToken { /* Redis에 저장해서 RefreshToken이 유효한
public RefreshToken(String jwtRefreshToken, String authKey) {
this.jwtRefreshToken = jwtRefreshToken;
this.authKey = authKey;
//this.ttl = 1000L * 60 * 60 * 24 * 14;
this.ttl = 1000L * 60 * 5;
this.ttl = 1000L * 60 * 60 * 24 * 14;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ public class JwtTokenProvider {

/* 토큰의 만료 시간 설정
* jwtAccessToken은 1시간, jwtRefreshToken은 1주 */
//private static final long JWT_EXPIRATION_TIME = 1000L * 60 * 60; //1시간
//private static final long REFRESH_TOKEN_EXPIRATION_TIME = 1000L * 60 * 60 * 24 * 14; //14일
private static final long JWT_EXPIRATION_TIME = 1000L * 60 * 2;
private static final long REFRESH_TOKEN_EXPIRATION_TIME = 1000L * 60 * 5;
private static final long JWT_EXPIRATION_TIME = 1000L * 60 * 60; //1시간
private static final long REFRESH_TOKEN_EXPIRATION_TIME = 1000L * 60 * 60 * 24 * 14; //14일

private static final String AUTHORITIES_KEY = "auth";

Expand Down
Loading