diff --git a/Briefing-Api/src/main/java/com/example/briefingapi/redis/service/RedisServiceImpl.java b/Briefing-Api/src/main/java/com/example/briefingapi/redis/service/RedisServiceImpl.java index 8d9ccce..e1d3b04 100644 --- a/Briefing-Api/src/main/java/com/example/briefingapi/redis/service/RedisServiceImpl.java +++ b/Briefing-Api/src/main/java/com/example/briefingapi/redis/service/RedisServiceImpl.java @@ -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() diff --git a/Briefing-Api/src/main/resources/application.yml b/Briefing-Api/src/main/resources/application.yml index 5167afd..bd7503c 100644 --- a/Briefing-Api/src/main/resources/application.yml +++ b/Briefing-Api/src/main/resources/application.yml @@ -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: @@ -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: