Skip to content

Commit

Permalink
access token, refresh 토큰 유효시간 수정 (#185)
Browse files Browse the repository at this point in the history
* ✨ Feat : 멀티모듈 적용 및 FCM 구현

* 🔨 코드리뷰 반영

* 👷 Ci : deploy.yml 수정

* 👷 Ci : deploy.yml 수정

git push origin feature/156

* ebextensions 수정

* 👷 Ci : deploy.yml 오타 수정

* ci 스크립트 수정

* ci/cd 트러블 슈팅

* ci/cd 트러블 슈팅

* ci/cd 트러블슈팅

* 🐛 Fix : accessToken 테스트를 위한 유효시간 임시 변경

* 🐛 Fix : 리프레시 토큰 무조건 access Token과 재발급 되도록 수정

* 🐛 Fix : 토큰 관련 spring security 설정 수정

* 🐛 Fix : access token, refresh 토큰 유효시간 수정
  • Loading branch information
CYY1007 authored Feb 16, 2024
1 parent 02996ca commit 0b4ac1c
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 0b4ac1c

Please sign in to comment.