From 35d5cdd992d35a096b0628ddb006faad433c31eb Mon Sep 17 00:00:00 2001 From: MinchoGreenT Date: Sun, 18 Aug 2024 15:26:47 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20=EB=B0=B0=ED=8F=AC=20=EC=8A=A4=ED=81=AC?= =?UTF-8?q?=EB=A6=BD=ED=8A=B8=20=EC=88=98=EC=A0=95=20=EB=B0=8F=20jwt=20?= =?UTF-8?q?=ED=86=A0=ED=81=B0=EC=8B=9C=EA=B0=84=20yml=EB=A1=9C=20=EC=9D=B4?= =?UTF-8?q?=EB=8F=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dev-cicd.yml | 2 +- .../global/common/security/JwtTokenProvider.java | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dev-cicd.yml b/.github/workflows/dev-cicd.yml index 60437459..05f4491a 100644 --- a/.github/workflows/dev-cicd.yml +++ b/.github/workflows/dev-cicd.yml @@ -2,7 +2,7 @@ name: cicd for development on: push: - branches: [ "dev", "fix_82/클라우드-이전" ] + branches: [ "dev" ] jobs: build: diff --git a/src/main/java/com/modernfarmer/farmusspring/global/common/security/JwtTokenProvider.java b/src/main/java/com/modernfarmer/farmusspring/global/common/security/JwtTokenProvider.java index 7f094875..d796b98e 100644 --- a/src/main/java/com/modernfarmer/farmusspring/global/common/security/JwtTokenProvider.java +++ b/src/main/java/com/modernfarmer/farmusspring/global/common/security/JwtTokenProvider.java @@ -30,9 +30,11 @@ public class JwtTokenProvider { @Value("${jwt.secret}") private String secretKey; + @Value("${jwt.expireAccessToken}") + private long accessTokenTime; - private final long accessTokenTime = 60L * 1000 * 10000000; - private final long refreshTokenTime = 180L * 1000 * 1000000000; + @Value("${jwt.expireRefreshToken}") + private long refreshTokenTime; @PostConstruct