Skip to content

Commit

Permalink
fix : jwtFilter token null check
Browse files Browse the repository at this point in the history
  • Loading branch information
NameIsUser06 committed Dec 27, 2023
1 parent b4deb46 commit 63ae8f7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class JwtFilter extends OncePerRequestFilter {
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException {
String token = jwtUtil.resolveToken(request);

if (token != null) {
if (token != null && !token.isEmpty()) {
if (!refreshTokenRepository.existsByAccessToken(token)) {
throw LoggedOutAccessTokenException.EXCEPTION;
}
Expand Down

0 comments on commit 63ae8f7

Please sign in to comment.