Skip to content

Commit

Permalink
Merge pull request #83 from Alpha-Damyo/develop
Browse files Browse the repository at this point in the history
merge to main
  • Loading branch information
wjdwlghks authored Jun 6, 2024
2 parents 3e3684d + f5c1931 commit 3ce0752
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.damyo.alpha.api.auth.exception.AuthException;
import io.jsonwebtoken.ExpiredJwtException;
import io.jsonwebtoken.MalformedJwtException;
import io.jsonwebtoken.security.SecurityException;
import io.jsonwebtoken.security.SignatureException;
import io.jsonwebtoken.UnsupportedJwtException;
import jakarta.servlet.FilterChain;
Expand Down Expand Up @@ -38,7 +39,7 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse
SecurityContextHolder.getContext().setAuthentication(authentication);
} catch (ExpiredJwtException e) {
request.setAttribute("exception", new AuthException(EXPIRED_TOKEN));
} catch (Exception e) {
} catch (SecurityException | MalformedJwtException | UnsupportedJwtException | IllegalArgumentException e) {
request.setAttribute("exception", new AuthException(INVALID_TOKEN));
}

Expand Down

0 comments on commit 3ce0752

Please sign in to comment.