Skip to content

Commit

Permalink
chore: resolve merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
rlarltj committed May 26, 2024
1 parent 10955b2 commit 074d074
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.moneymong.domain.agency.service.AgencyUserService;
import com.moneymong.domain.user.api.request.LoginRequest;
import com.moneymong.domain.user.api.request.UserDeleteRequest;
import com.moneymong.global.security.oauth.dto.AuthUserInfo;
import com.moneymong.domain.user.api.response.LoginSuccessResponse;
import com.moneymong.global.security.oauth.dto.OAuthUserDataResponse;
Expand Down Expand Up @@ -45,10 +44,4 @@ public void delete(Long userId) {
userUniversityService.delete(userId);
agencyUserService.deleteAll(userId);
}

@Transactional
public void revoke(UserDeleteRequest deleteRequest, Long userId) {
oAuthService.revoke(deleteRequest);
delete(userId);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,6 @@ private OAuthUserDataResponse decodePayload(String idToken, String nickname, Str
String providerUid = decoded.getSubject();
String email = claims.get("sub").asString();

log.info("[AppleService] email = {}", email);
log.info("[AppleService] nickname = {}", nickname);
return OAuthUserDataResponse.builder()
.provider(getAuthProvider().toString())
.oauthId(providerUid)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package com.moneymong.global.security.service;

import com.moneymong.domain.user.api.request.LoginRequest;
import com.moneymong.domain.user.api.request.UserDeleteRequest;

import com.moneymong.domain.user.entity.User;
import com.moneymong.domain.user.repository.UserRepository;
import com.moneymong.global.exception.custom.NotFoundException;
import com.moneymong.global.exception.enums.ErrorCode;

import com.moneymong.global.security.oauth.dto.OAuthUserDataRequest;
import com.moneymong.global.security.oauth.dto.OAuthUserDataResponse;
import com.moneymong.global.security.oauth.handler.OAuthAuthenticationHandler;
import org.springframework.stereotype.Service;

import java.util.List;
Expand Down Expand Up @@ -53,4 +54,5 @@ public void revoke(Long userId) {
OAuthAuthenticationHandler oAuthHandler = this.oAuthAuthenticationHandlers.get(oAuthProvider);

oAuthHandler.unlink(userId);
}
}

0 comments on commit 074d074

Please sign in to comment.