diff --git a/src/main/java/com/hyundai/app/member/oauth/LoginService.java b/src/main/java/com/hyundai/app/member/oauth/LoginService.java index 03eba9d..d1da8e5 100644 --- a/src/main/java/com/hyundai/app/member/oauth/LoginService.java +++ b/src/main/java/com/hyundai/app/member/oauth/LoginService.java @@ -2,6 +2,7 @@ import com.hyundai.app.exception.AdventureOfHeendyException; import com.hyundai.app.member.dto.LoginReqDto; +import com.hyundai.app.member.oauth.kakao.KakaoOauthLoginStrategy; import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Component; @@ -26,6 +27,7 @@ public LoginStrategy getOAuthLoginClient(LoginReqDto loginRequestDto) { return this.loginStrategies.stream() .filter(s-> s.oAuthType().toString().equals(oAuthType)) .findFirst() - .orElseThrow(() -> new AdventureOfHeendyException(OAUTH_INVALID)); + .orElse(new KakaoOauthLoginStrategy()); + // .orElseThrow(() -> new AdventureOfHeendyException(OAUTH_INVALID)); } } \ No newline at end of file