File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/com/yello/server/domain/authorization/service Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
package com .yello .server .domain .authorization .service ;
2
2
3
3
import static io .jsonwebtoken .SignatureAlgorithm .HS256 ;
4
+ import static java .time .Duration .ofDays ;
4
5
import static java .time .Duration .ofMinutes ;
5
- import static java .time .Duration .ofSeconds ;
6
6
7
7
import com .yello .server .domain .authorization .dto .ServiceTokenVO ;
8
8
import io .jsonwebtoken .Claims ;
@@ -23,8 +23,8 @@ public class TokenJwtProvider implements TokenProvider {
23
23
public static final String ACCESS_TOKEN = "accessToken" ;
24
24
public static final String REFRESH_TOKEN = "refreshToken" ;
25
25
26
- private static final Long ACCESS_TOKEN_VALID_TIME = ofSeconds (30 ).toMillis ();
27
- private static final Long REFRESH_TOKEN_VALID_TIME = ofMinutes ( 1 ).toMillis ();
26
+ private static final Long ACCESS_TOKEN_VALID_TIME = ofMinutes (30 ).toMillis ();
27
+ private static final Long REFRESH_TOKEN_VALID_TIME = ofDays ( 14 ).toMillis ();
28
28
29
29
public String secretKey ;
30
30
You can’t perform that action at this time.
0 commit comments