diff --git a/src/main/java/balancetalk/global/oauth2/service/CustomOAuth2UserService.java b/src/main/java/balancetalk/global/oauth2/service/CustomOAuth2UserService.java index 9b05a7d51..af4bad147 100644 --- a/src/main/java/balancetalk/global/oauth2/service/CustomOAuth2UserService.java +++ b/src/main/java/balancetalk/global/oauth2/service/CustomOAuth2UserService.java @@ -45,7 +45,7 @@ public OAuth2User loadUser(OAuth2UserRequest userRequest) throws OAuth2Authentic String email = getEmail(oauth2Response); String provider = getProvider(oauth2Response); - Member findMember = memberRepository.findByEmail(email).orElse(null); + Member findMember = memberRepository.findByEmail(provider + "_" + email).orElse(null); if (findMember == null) { String encodedPassword = passwordEncoder().encode(oauth2Password);