Skip to content

Commit

Permalink
Merge pull request #105 from Team-Shaka/refactor/103
Browse files Browse the repository at this point in the history
♻️  Refactor : 토큰 만료시간 수정
  • Loading branch information
CYY1007 committed Apr 14, 2024
2 parents c9002c9 + 53a61fb commit db31895
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 @@ -9,7 +9,7 @@

// 테스트를 위해 짧게 하기도 해야함
// 60 * 60 * 24 * 14 <- 2주
@RedisHash(value = "refreshToken_Treehouse", timeToLive = 60 * 8)
@RedisHash(value = "refreshToken_Treehouse", timeToLive = 60 * 2)
@Builder
@Getter
@AllArgsConstructor(access = AccessLevel.PROTECTED)
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ jwt:
key: ${JWT_SECRET}
# secret : ${JWT_SECRET}
authorities-key: authoritiesKey
access-token-validity-in-seconds: 300000 # 5 m
refresh-token-validity-in-seconds: 360000 # 6 d
access-token-validity-in-seconds: 30000 # 30 s
refresh-token-validity-in-seconds: 60000 # 1 min



Expand Down

0 comments on commit db31895

Please sign in to comment.