Skip to content

Commit

Permalink
[STMT-146] 🐛 Access Token이 전달되지 않을 경우 바로 필터체인으로 넘기도록 변경 (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
zxcv9203 authored Feb 23, 2024
1 parent 0c835f5 commit 33da24a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse
if (context.getAuthentication() == null) {
String token = JwtUtil.resolveToken(request.getHeader(AuthenticationHeader.ACCESS_TOKEN.getName()));

if (jwtTokenProvider.validateToken(token)) {
if (token != null && jwtTokenProvider.validateToken(token)) {
Authentication auth = jwtAuthenticationService.getAuthentication(token);
context.setAuthentication(auth);
}
Expand Down

0 comments on commit 33da24a

Please sign in to comment.