From 22ba8f864602ae6ad1ee96267e6a0b55fcf6c699 Mon Sep 17 00:00:00 2001 From: sooyoung Date: Mon, 4 Mar 2024 05:08:36 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EA=B8=B0=EB=B3=B8=20OAUTH=20=ED=83=80?= =?UTF-8?q?=EC=9E=85=EC=9D=80=20KAKAO=EC=9C=BC=EB=A1=9C=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/hyundai/app/member/oauth/LoginService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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