Skip to content

Commit

Permalink
refactor: 토큰 만료 시간 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
GaBaljaintheroom committed Jan 22, 2025
1 parent 2db1c41 commit 0985ef1
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 @@ -22,7 +22,7 @@ public void saveBlacklistAccessToken(UUID userId, String accessToken) {
@Override
public void saveRefreshToken(UUID userId, String refreshToken) {
stringRedisTemplate.opsForValue()
.set("RT:" + userId.toString(), refreshToken, 14, TimeUnit.DAYS);
.set("RT:" + userId.toString(), refreshToken, 10, TimeUnit.MINUTES);
}

@Override
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ spring:

token:
secret-key: ${TOKEN_SECRET_KEY}
access-token-expiration-seconds: 3600000 # 1hour = 1000(=1s) * 60 * 60
refresh-token-expiration-seconds: 1209600000 # 2weeks = 1000(=1s) * 60 * 60 * 24 * 14
access-token-expiration-seconds: 300000 # 5분
refresh-token-expiration-seconds: 600000 # 10분

alarm:
api-url: ${ALARM_SERVER_API_URL}
Expand Down

0 comments on commit 0985ef1

Please sign in to comment.