We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9661c5 commit 9672171Copy full SHA for 9672171
src/main/java/com/somemore/auth/jwt/filter/JwtAuthFilter.java
@@ -34,12 +34,12 @@ public class JwtAuthFilter extends OncePerRequestFilter {
34
35
@Override
36
protected boolean shouldNotFilter(HttpServletRequest request) {
37
- EncodedToken accessToken = getAccessToken(request);
38
- String path = request.getRequestURI();
39
-
40
- return accessToken == null
41
- || accessToken.isUninitialized()
42
- || path.equals("/api/center/sign-in");
+ try {
+ EncodedToken accessToken = getAccessToken(request);
+ return accessToken == null || accessToken.isUninitialized();
+ } catch (JwtException e) {
+ return true;
+ }
43
}
44
45
0 commit comments