From 963d3eeaddf9ff3cec207ab1b4a6a6dfde4540f4 Mon Sep 17 00:00:00 2001 From: Sunny Date: Wed, 8 May 2024 21:21:32 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=95=A1=EC=84=B8=EC=8A=A4=20=ED=86=A0?= =?UTF-8?q?=ED=81=B0=20=EB=A7=8C=EB=A3=8C=20=EC=8B=9C=EA=B0=84=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/org/runnect/server/config/jwt/JwtService.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/runnect/server/config/jwt/JwtService.java b/src/main/java/org/runnect/server/config/jwt/JwtService.java index 5ed02a2..25a655f 100644 --- a/src/main/java/org/runnect/server/config/jwt/JwtService.java +++ b/src/main/java/org/runnect/server/config/jwt/JwtService.java @@ -7,7 +7,6 @@ import io.jsonwebtoken.security.Keys; import java.nio.charset.StandardCharsets; import java.security.Key; -import java.time.Duration; import java.util.Base64; import java.util.Date; import javax.annotation.PostConstruct; @@ -15,7 +14,6 @@ import org.runnect.server.common.constant.TokenStatus; import org.runnect.server.config.redis.RedisService; import org.springframework.beans.factory.annotation.Value; -import org.springframework.data.redis.core.RedisTemplate; import org.springframework.stereotype.Service; @@ -26,7 +24,8 @@ public class JwtService { @Value("${jwt.secret}") private String jwtSecret; - private final long accessTokenExpiryTime = 1000L * 60 * 60 * 2; // 2시간 +// private final long accessTokenExpiryTime = 1000L * 60 * 60 * 2; // 2시간 + private final long accessTokenExpiryTime = 1 * 60 * 1000L; // 안드로이드 테스트용 private final long refreshTokenExpiryTime = 1000L * 60 * 60 * 24 * 14; // 2주 private final String CLAIM_NAME = "userId";