Skip to content

Commit

Permalink
[#37] fix: 애플 로그인은 최초 로그인할 때만 사용자 정보 저장
Browse files Browse the repository at this point in the history
  • Loading branch information
kimyu0218 committed Feb 4, 2025
1 parent 263dac6 commit dd66fa9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,7 @@ public Long appleLogin(final AppleLoginCommand command) {
return socialAccountRepository
.findByOauthIdAndSocialProviderAndDeletedAtIsNull(
authorization.getSub(), SocialProvider.APPLE)
.map(SocialAccount::getMember)
.map(
it -> {
it.updateUserInfo(authorization.getEmail());
return it.getId();
})
.map(account -> account.getMember().getId())
.orElseGet(
() -> appleSignup(authorization.getSub(), command.name(), authorization.getEmail()));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ public void softDelete() {
super.softDelete();
}

public void updateUserInfo(final String email) {
this.email = email;
}

public void updateUserInfo(final String name, final String email) {
this.name = name;
this.email = email;
Expand Down

0 comments on commit dd66fa9

Please sign in to comment.