diff --git a/backend/core/src/main/java/com/rollthedice/backend/global/oauth2/service/AuthService.java b/backend/core/src/main/java/com/rollthedice/backend/global/oauth2/service/AuthService.java index 649b8d58..3d150356 100644 --- a/backend/core/src/main/java/com/rollthedice/backend/global/oauth2/service/AuthService.java +++ b/backend/core/src/main/java/com/rollthedice/backend/global/oauth2/service/AuthService.java @@ -34,7 +34,7 @@ public void authenticateOrRegisterUser(LoginRequest loginRequest, HttpServletRes private Member findOrElseRegisterMember(OAuth2UserInfo userInfo, SocialType socialType) { return memberRepository.findBySocialTypeAndOauthId(socialType, userInfo.getId()) - .orElse(registerMember(socialType, userInfo)); + .orElseGet(() -> registerMember(socialType, userInfo)); } private Member registerMember(SocialType socialType, OAuth2UserInfo userInfo) {