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

[refac] 소셜로그인 코드 리펙토링 #24

Merged
merged 3 commits into from
Jul 8, 2024
Merged

[refac] 소셜로그인 코드 리펙토링 #24

merged 3 commits into from
Jul 8, 2024

Conversation

kgy1008
Copy link
Member

@kgy1008 kgy1008 commented Jul 8, 2024

Related Issue 📌

close #21

Description ✔️

  • 코드 리뷰 반영해서 pr 올립니다.

To Reviewers

다음부터 다시는 이렇게 대용량으로 pr 올리지 않겠습니다..

Copy link
Contributor

@Parkjyun Parkjyun left a comment

Choose a reason for hiding this comment

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

고생하셨습니다.

if (!isRegistered){
User newUser = createUser(
private User loadOrCreateUser(final Platform platform, final SocialInfoDto socialInfo){
Optional<User> existedUserOptional = userFinder.isExistedUser(platform, socialInfo.serialId());
Copy link
Contributor

Choose a reason for hiding this comment

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

변수명 뒤에 Optional 굳이 안 붙여도 될 것 같습니다.

Comment on lines 33 to 36

public Optional<User> isExistedUser(final Platform platform, final String serialId) {
return userRepository.findByPlatformAndSerialId(platform, serialId);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

isExistedUser같은 메서드명은 보통 boolean형을 return할 것이라 예상 돼서
findUserByPlatFormAndSeralId는 어떨까요?

@kgy1008 kgy1008 requested a review from Parkjyun July 8, 2024 13:15
@kgy1008 kgy1008 merged commit 6ac56eb into develop Jul 8, 2024
1 check passed
@kgy1008 kgy1008 deleted the refac/21 branch December 2, 2024 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[refac] 소셜 로그인 리팩토링
2 participants