Skip to content

Commit 797798b

Browse files
authored
feat: 액세스 토큰 만료 시간 변경 (#164)
1 parent b6b3361 commit 797798b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/main/java/org/runnect/server/config/jwt/JwtService.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,13 @@
77
import io.jsonwebtoken.security.Keys;
88
import java.nio.charset.StandardCharsets;
99
import java.security.Key;
10-
import java.time.Duration;
1110
import java.util.Base64;
1211
import java.util.Date;
1312
import javax.annotation.PostConstruct;
1413
import lombok.RequiredArgsConstructor;
1514
import org.runnect.server.common.constant.TokenStatus;
1615
import org.runnect.server.config.redis.RedisService;
1716
import org.springframework.beans.factory.annotation.Value;
18-
import org.springframework.data.redis.core.RedisTemplate;
1917
import org.springframework.stereotype.Service;
2018

2119

@@ -26,7 +24,8 @@ public class JwtService {
2624
@Value("${jwt.secret}")
2725
private String jwtSecret;
2826

29-
private final long accessTokenExpiryTime = 1000L * 60 * 60 * 2; // 2시간
27+
// private final long accessTokenExpiryTime = 1000L * 60 * 60 * 2; // 2시간
28+
private final long accessTokenExpiryTime = 1 * 60 * 1000L; // 안드로이드 테스트용
3029
private final long refreshTokenExpiryTime = 1000L * 60 * 60 * 24 * 14; // 2주
3130
private final String CLAIM_NAME = "userId";
3231

0 commit comments

Comments
 (0)