Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

시큐리티에서 JWT 토큰 인증에 실패했을 때, 에러 응답 보내도록 개선 #22

Open
kckc0608 opened this issue Jan 24, 2025 · 0 comments

Comments

@kckc0608
Copy link
Member

kckc0608 commented Jan 24, 2025

📌구현할 기능

  • 지금은 JWT 토큰 인증에 실패하면 403 에러와 함께 아무런 응답이 뜨지 않습니다. 프론트에게 적절한 에러 메세지와 함께 401 에러를 응답하도록 수정하는 게 좋을 것 같아요
  • 예약과 같이 '일반' 권한이 필요한 api 의 경우, 해당 권한이 없으면 권한 에러 메세지를 명시적으로 보내주어야 합니다.

요 내용은 throw 로 에러를 발생시키고 에러 핸들러로 처리하면 깔끔할 것 같아요!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant