Skip to content

Commit

Permalink
feat: 기본 OAUTH 타입은 KAKAO으로 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
sooyoungh committed Mar 3, 2024
1 parent 7c12351 commit 22ba8f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/hyundai/app/member/oauth/LoginService.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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));
}
}

0 comments on commit 22ba8f8

Please sign in to comment.