Skip to content

Commit

Permalink
🐛 Fix : access token, refresh 토큰 유효시간 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
CYY1007 committed Feb 16, 2024
1 parent 31a74d6 commit 1768379
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 @@ -47,7 +47,7 @@ public RefreshToken generateRefreshToken(String socialId, SocialType socialType)

LocalDateTime currentTime = LocalDateTime.now();

LocalDateTime expireTime = currentTime.plus(90, ChronoUnit.SECONDS);
LocalDateTime expireTime = currentTime.plus(62, ChronoUnit.SECONDS);

return refreshTokenRepository.save(
RefreshToken.builder()
Expand Down
4 changes: 2 additions & 2 deletions Briefing-Api/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jwt:
# dev server
secret: ${JWT_SECRET}
authorities-key: authoritiesKey
access-token-validity-in-seconds: 1210000000 # 30 m
access-token-validity-in-seconds: 30000
refresh-token-validity-in-seconds: 1210000000 # 14 d

openai:
Expand Down Expand Up @@ -119,7 +119,7 @@ jwt:
secret: ${JWT_SECRET}
# secret : ${JWT_SECRET}
authorities-key: authoritiesKey
access-token-validity-in-seconds: 30 # 30 m
access-token-validity-in-seconds: 30000 # 30 m
refresh-token-validity-in-seconds: 1210000000 # 14 d

openai:
Expand Down

0 comments on commit 1768379

Please sign in to comment.