Skip to content

Commit 241d853

Browse files
authored
Merge pull request #316 from 7-umc-GrowIT/setting/#315
[#315] Setting : apple client id 수정 및 토큰 만료 시간 임시 설정
2 parents 8d456bf + d658c8b commit 241d853

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

config

src/main/java/umc/GrowIT/Server/apiPayload/code/ReasonDTO.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@
99
public class ReasonDTO {
1010

1111
private HttpStatus httpStatus;
12-
1312
private final boolean isSuccess;
1413
private final String code;
1514
private final String message;
1615

1716
public boolean getIsSuccess(){return isSuccess;}
18-
}
17+
}

src/main/java/umc/GrowIT/Server/util/JwtTokenUtil.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ public class JwtTokenUtil {
3131
private final UserQueryService userQueryService;
3232

3333
private final Key key;
34-
public static final long ACCESS_TOKEN_EXPIRATION_MS = 60L * 1000; //테스트 용 Access token 만료 시간 1시간
35-
public static final long REFRESH_TOKEN_EXPIRATION_MS = 60L * 24 * 60 * 60 * 1000; //테스트 용 Refresh token 만료 시간 60일
34+
public static final long ACCESS_TOKEN_EXPIRATION_MS = 60L * 1000; // 테스트용 1분
35+
public static final long REFRESH_TOKEN_EXPIRATION_MS = 60L * 1000; // 테스트용 1분
36+
// public static final long ACCESS_TOKEN_EXPIRATION_MS = 60L * 60 * 1000; // Access token 만료 시간 1시간
37+
// public static final long REFRESH_TOKEN_EXPIRATION_MS = 60L * 24 * 60 * 60 * 1000; // Refresh token 만료 시간 60일
3638

3739
public JwtTokenUtil(@Value("${spring.jwt.secretKey}") String secretKey, UserQueryService userQueryService) {
3840
byte[] keyBytes = Decoders.BASE64.decode(secretKey);

0 commit comments

Comments
 (0)