-
Notifications
You must be signed in to change notification settings - Fork 0
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
Token 처리하는 필터 구현 #41
Token 처리하는 필터 구현 #41
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
인증과 인가를 구현한 좋은 레퍼런스가 될 거 같네요 ㅎㅎ 수고하셨습니다.
public class UserCreator { | ||
|
||
private final UserRepository repository; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
repository 네이밍을 통일성 있게 가기 위해서 userRepository로 하는게 좋을 거 같아요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넵!
User user = userRepository.findById(userId) | ||
.orElseThrow(() -> new UserNotFoundException(userId)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
인터셉터에서는 userReader를 만들어서 쓸 수 없는 건가요?? 진짜 몰라서 물어봅니다. ㅎ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
헉 맞네요. 변경하겠습니다~
🎫 관련 이슈
close #40
🔨 작업 내용
🏁 확인 사항
🙋🏻 덧붙일 말