Skip to content

Commit

Permalink
Merge pull request #76 from 0702Yoon/main
Browse files Browse the repository at this point in the history
chore : access token 기간 10, refresh token 기간 30
  • Loading branch information
0702Yoon authored Aug 14, 2024
2 parents 3ebd127 + 262633d commit e3c751e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
@Component
public class JwtTokenProvider {
private final Key key;
private static final long ACCESS_TIME = 2 * 60 * 100L; // 1분
private static final long REFRESH_TIME = 20 * 60 * 1000L; //20분
private static final long ACCESS_TIME = 10 * 60 * 100L; // 10분
private static final long REFRESH_TIME = 30 * 60 * 1000L; //30분
public JwtTokenProvider(@Value("${jwt.secret}") String secretKey){
byte[] keyBytes = Decoders.BASE64.decode(secretKey);
this.key = Keys.hmacShaKeyFor(keyBytes);
Expand Down

0 comments on commit e3c751e

Please sign in to comment.