Skip to content

Commit

Permalink
fix: JWT 토큰이 둘 다 비었을 때 빈 토큰 주입을 하지 않도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
02ggang9 committed Jan 31, 2024
1 parent 33e6406 commit 42d0e68
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ public void doFilter(ServletRequest request, ServletResponse response, FilterCha
HttpServletResponse httpResponse = (HttpServletResponse) response;

authCookieService.setNewCookieInResponse(authId, roles, httpRequest.getHeader(USER_AGENT), httpResponse);
} else if (accessTokenDto.getResultType() == JwtValidationType.EMPTY && refreshTokenDto.getResultType() == JwtValidationType.EMPTY) {
filterChain.doFilter(request, response);
} else {
authCookieService.setCookieExpired((HttpServletResponse) response);
}
Expand Down

0 comments on commit 42d0e68

Please sign in to comment.