Skip to content

Commit

Permalink
refactor: accessToken 시간 증가
Browse files Browse the repository at this point in the history
  • Loading branch information
2Jin1031 committed Jan 12, 2025
1 parent cd3f941 commit 70910c6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,10 @@ protected void successfulAuthentication(HttpServletRequest request, HttpServletR

String role = auth.getAuthority();

String token = jwtUtil.createJwt(loginId, role, 1800 * 100 * 10L);
String accessToken = jwtUtil.createJwt(loginId, role, 100000000 * 1800 * 100 * 10L);
String refreshToken = jwtUtil.createJwt(loginId, role, 60 * 60 * 24 * 30 * 1000L);

response.addHeader("Authorization", "Bearer " + token);
response.addHeader("Authorization", "Bearer " + accessToken);
}

@Override
Expand Down

0 comments on commit 70910c6

Please sign in to comment.