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

access token, refresh 토큰 유효시간 수정 #185

Merged
merged 19 commits into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
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 @@ -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
Loading