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

fix: jwt 오류 해결 및 컨플릭트 해결 #12

Merged
merged 7 commits into from
Jul 6, 2024

Conversation

penrose15
Copy link
Collaborator

🌱 관련 이슈

  • close #

📌 작업 내용 및 특이사항

📝 참고사항

📚 기타

@penrose15 penrose15 self-assigned this Jul 6, 2024
Copy link
Member

@its-sky its-sky left a 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);
Copy link
Member

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();
Copy link
Member

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));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

요거 저희 공통 Exception으로 바꾸면 좋을거 같아요~

@its-sky its-sky changed the title Fix : jwt 오류 해결 및 컨플릭트 해결 fix: jwt 오류 해결 및 컨플릭트 해결 Jul 6, 2024
@its-sky its-sky merged commit a01492b into develop Jul 6, 2024
@penrose15 penrose15 linked an issue Jul 6, 2024 that may be closed by this pull request
2 tasks
@its-sky its-sky deleted the feature/6-jwt-filter branch July 30, 2024 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

✨ JWT 필터 구현
2 participants