Skip to content

Commit

Permalink
feat: change token expire time
Browse files Browse the repository at this point in the history
- 토큰 만료 시간 변경 (액세스 5분, 리프레시 하루)
  • Loading branch information
seokwns committed Nov 10, 2023
1 parent 51244eb commit 460dbbb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
@Component
public class JWTProvider {
// access-token expire time = 2 min
public final Long ACCESS_TOKEN_EXP = 1000L * 60 * 2;
public final Long ACCESS_TOKEN_EXP = 1000L * 60 * 5;
// refresh-token expire time = 3 min
public final Long REFRESH_TOKEN_EXP = 1000L * 60 * 3;
public final Long REFRESH_TOKEN_EXP = 1000L * 60 * 60 * 24 * 1;
public final String TOKEN_PREFIX = "Bearer ";
public final String AUTHORIZATION_HEADER = "Authorization";
public final String REFRESH_HEADER = "Refresh";
Expand Down

0 comments on commit 460dbbb

Please sign in to comment.