Skip to content

Commit

Permalink
refactor: 회원가입 요청에 JWT validation을 적용하지 않도록 수정 (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sangwook02 committed Oct 10, 2023
1 parent 632f96f commit d1ff104
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.web.filter.OncePerRequestFilter;

import java.io.IOException;

import static com.newfit.reservation.exception.ErrorCode.*;
Expand Down Expand Up @@ -79,6 +78,9 @@ private boolean requiresValidityCheck(HttpServletRequest request) {
if (request.getRequestURI().equals("/api/v1/gyms") && request.getMethod().equals(HttpMethod.GET.toString())) {
return false;
}
if (request.getRequestURI().equals("/api/v1/users") && request.getMethod().equals(HttpMethod.POST.toString())) {
return false;
}
return true;
}
}

0 comments on commit d1ff104

Please sign in to comment.