Skip to content

Commit

Permalink
Merge pull request #266 from urinaner/feature/86
Browse files Browse the repository at this point in the history
[BE] [REFACTOR] accessToken 유효시간 증가
  • Loading branch information
2Jin1031 authored Jan 12, 2025
2 parents af2bb2f + 70910c6 commit e7b5101
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, 60 * 60 * 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 e7b5101

Please sign in to comment.