-
Notifications
You must be signed in to change notification settings - Fork 2
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
fix: jwt 오류 해결 및 컨플릭트 해결 #12
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.
수고하셨습니다 ~!
httpHeaders.add(REFRESH_HEADER.getValue(), jwtTokenResponseDto.refreshToken()); | ||
httpHeaders.add(ACCESS_HEADER.getValue(), jwtTokenResponseDto.accessToken()); | ||
|
||
return ResponseEntity.ok(jwtTokenResponseDto); |
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.
이거 ApiResponse.success(MemberSuccessType.~, jwtTokenResponseDto);
로 하면 좋을거 같아요~
public ResponseEntity<?> signUp(@RequestBody MemberCreateDto memberCreate) { | ||
authService.signUp(memberCreate); | ||
|
||
return ResponseEntity.ok().build(); |
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.
signUp response body가 없으면 ResponseEntity.noContent().build();
로 처리하면 좋을거 같습니다~
return Arrays.stream(clazz.getEnumConstants()) | ||
.filter(e -> e.getValue().equals(dbData)) | ||
.findFirst() | ||
.orElseThrow(() -> new IllegalArgumentException("Unknown code: " + dbData)); |
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.
요거 저희 공통 Exception으로 바꾸면 좋을거 같아요~
🌱 관련 이슈
📌 작업 내용 및 특이사항
📝 참고사항
📚 기타