Skip to content

Commit

Permalink
Hotfix: JWT 로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
KoungQ committed Aug 20, 2024
1 parent 0c068f7 commit a4f315d
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,14 @@ public void checkAccessTokenAndRefreshToken(HttpServletRequest request, HttpServ
.ifPresentOrElse(
accessToken -> jwtService.extractEmail(accessToken)
.ifPresent(email -> userRepository.findByEmail(email)
.ifPresent(this::saveAuthentication)),
.ifPresent(user -> {
saveAuthentication(user);
try {
filterChain.doFilter(request, response);
} catch (IOException | ServletException e) {
throw new RuntimeException(e);
}
})),
() -> checkRefreshTokenAndReIssueAccessToken(response, refreshToken)
);

Expand Down

0 comments on commit a4f315d

Please sign in to comment.