From 723319850926c8e47d31131d05198bca7621ad8b Mon Sep 17 00:00:00 2001 From: ChoiBoKeun1 <136104922+ChoiBoKeun1@users.noreply.github.com> Date: Wed, 9 Jul 2025 18:56:24 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20access,=20refresh=20token=20=EA=B8=B0?= =?UTF-8?q?=EA=B0=84=20=EC=9D=98=EB=8F=84=EB=8C=80=EB=A1=9C=20=EC=9E=AC?= =?UTF-8?q?=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/Gathering_be/global/jwt/JwtTokenProvider.java | 2 +- Gathering_be/src/main/resources/application-prod.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gathering_be/src/main/java/com/Gathering_be/global/jwt/JwtTokenProvider.java b/Gathering_be/src/main/java/com/Gathering_be/global/jwt/JwtTokenProvider.java index a0d0b37..4144fff 100644 --- a/Gathering_be/src/main/java/com/Gathering_be/global/jwt/JwtTokenProvider.java +++ b/Gathering_be/src/main/java/com/Gathering_be/global/jwt/JwtTokenProvider.java @@ -32,7 +32,7 @@ public JwtTokenProvider( ObjectMapper objectMapper) { this.key = Keys.hmacShaKeyFor(secretKey.getBytes()); this.tokenValidityInMilliseconds = tokenValidityInSeconds * 1000 * 30; - this.refreshTokenValidityInMilliseconds = tokenValidityInSeconds * 14 * 24 * 60 * 60 * 1000; + this.refreshTokenValidityInMilliseconds = tokenValidityInSeconds * 14 * 24 * 60 * 1000; this.objectMapper = objectMapper; } diff --git a/Gathering_be/src/main/resources/application-prod.yml b/Gathering_be/src/main/resources/application-prod.yml index cd52d16..4f9aa21 100644 --- a/Gathering_be/src/main/resources/application-prod.yml +++ b/Gathering_be/src/main/resources/application-prod.yml @@ -30,7 +30,7 @@ spring: jwt: secret: ${PROD_JWT_SECRET} - token-validity-in-seconds: 3600 + token-validity-in-seconds: 60 springdoc: swagger-ui: