diff --git a/src/main/java/com/committers/snowflowerthon/committersserver/auth/jwt/JwtFilter.java b/src/main/java/com/committers/snowflowerthon/committersserver/auth/jwt/JwtFilter.java index 9237b62..9b84ae0 100644 --- a/src/main/java/com/committers/snowflowerthon/committersserver/auth/jwt/JwtFilter.java +++ b/src/main/java/com/committers/snowflowerthon/committersserver/auth/jwt/JwtFilter.java @@ -57,6 +57,7 @@ protected boolean shouldNotFilter(HttpServletRequest request) throws ServletExce || path.equals("/login/oauth2/code/github") || path.equals("/health") || path.equals("/login") + || path.equals("/oauth2/authorization/github") ; } } diff --git a/src/main/java/com/committers/snowflowerthon/committersserver/auth/jwt/JwtUtils.java b/src/main/java/com/committers/snowflowerthon/committersserver/auth/jwt/JwtUtils.java index 7151b4a..dd74d42 100644 --- a/src/main/java/com/committers/snowflowerthon/committersserver/auth/jwt/JwtUtils.java +++ b/src/main/java/com/committers/snowflowerthon/committersserver/auth/jwt/JwtUtils.java @@ -76,7 +76,8 @@ public void deleteRefreshTokenByNickname(String nickname) { public boolean validateToken(String token) { if (!StringUtils.hasText(token)) { // throw new AppException(ErrorCode.JWT_TOKEN_NOT_EXISTS); - throw new TokenException(ErrorCode.JWT_TOKEN_NOT_EXISTS); +// throw new TokenException(ErrorCode.JWT_TOKEN_NOT_EXISTS); + return false; } if(isLogout(token)){ // throw new AppException(ErrorCode.JWT_TOKEN_EXPIRED);