File tree Expand file tree Collapse file tree
src/main/java/org/runnect/server/config/jwt Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77import io .jsonwebtoken .security .Keys ;
88import java .nio .charset .StandardCharsets ;
99import java .security .Key ;
10- import java .time .Duration ;
1110import java .util .Base64 ;
1211import java .util .Date ;
1312import javax .annotation .PostConstruct ;
1413import lombok .RequiredArgsConstructor ;
1514import org .runnect .server .common .constant .TokenStatus ;
1615import org .runnect .server .config .redis .RedisService ;
1716import org .springframework .beans .factory .annotation .Value ;
18- import org .springframework .data .redis .core .RedisTemplate ;
1917import 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
You can’t perform that action at this time.
0 commit comments