-
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
[Feat #26] JWT 관리(저장/재발급) 및 로그아웃 API #28
Conversation
- refreshToken 생성 추가 - refreshToken 생성 시 redis 저장 추가
헉 컨트롤러 통합 테스트를 작성 안했네요! 추가 작성해서 커밋하겠습니다,, |
Test Results43 tests 37 ✅ 5s ⏱️ Results for commit d40766d. ♻️ This comment has been updated with latest results. |
|
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.
고생하셨습니다~
src/main/java/com/dnd/gongmuin/member/dto/request/LogoutRequest.java
Outdated
Show resolved
Hide resolved
src/main/java/com/dnd/gongmuin/member/exception/MemberErrorCode.java
Outdated
Show resolved
Hide resolved
서비스 내부 로직이 다 호출되는지만 확인하면 되지 않을까요? 통합 테스트에서 확인해도 괜찮을 것 같습니다!! |
|
- MailService가 MemberService가 아닌 MemberRepository를 의존하도록 변경 - 변경으로 인한 checkDuplicatedOfficialEmail() 로직 변경 및 ReadOnly 추가
return "KAKAO"; | ||
} else if (socialEmail.contains("NAVER")) { | ||
} else if (socialEmail.contains(Provider.NAVER.getProvider())) { | ||
return "NAVER"; | ||
} |
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 static Provider fromSocialEmail(String socialEmail){
for (Provider provider : values()) {
if (socialEmail.contains(provider.getProvider())) {
return provider;
}
}
throw new NotFoundException(AuthErrorCode.NOT_FOUND_PROVIDER);
}
enum 안에 함수를 넣어도 괜찮을 것 같아요!
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.
책임 분배를 생각 못했네요! 반복문 + 조건식보다 스트림이 더 좋겠다고 생각되서 스트림 방식으로 변경했습니다~
추가적으로 Provider Test 코드도 작성했습니당
관련 이슈
📑 작업 상세 내용
💫 작업 요약
🔍 중점적으로 리뷰 할 부분