Skip to content

Commit 69afe31

Browse files
Update JwtAuthFilter.java
1 parent c0e3639 commit 69afe31

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/main/java/app/smartpot/api/security/config/filters/JwtAuthFilter.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ protected void doFilterInternal(
3838
user, user.getPassword(), null /* user.getAuthorities() */);
3939
authToken.setDetails(new WebAuthenticationDetailsSource().buildDetails(request));
4040
SecurityContextHolder.getContext().setAuthentication(authToken);
41-
} catch (Exception e) {
42-
response.sendError(HttpServletResponse.SC_UNAUTHORIZED, "Token Invalido o Expirado");
41+
} catch (Exception ignored) {
4342
}
4443
filterChain.doFilter(request, response);
4544
}

0 commit comments

Comments
 (0)