From 1768379d6af07c323cac60f8ce328e0ca03f3c61 Mon Sep 17 00:00:00 2001 From: CYY1007 Date: Fri, 16 Feb 2024 21:15:17 +0900 Subject: [PATCH] =?UTF-8?q?:bug:=20Fix=20:=20access=20token,=20refresh=20?= =?UTF-8?q?=ED=86=A0=ED=81=B0=20=EC=9C=A0=ED=9A=A8=EC=8B=9C=EA=B0=84=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../example/briefingapi/redis/service/RedisServiceImpl.java | 2 +- Briefing-Api/src/main/resources/application.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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: