diff --git a/src/main/kotlin/com/hero/alignlab/domain/dev/application/DevOAuthService.kt b/src/main/kotlin/com/hero/alignlab/domain/dev/application/DevOAuthService.kt index 2c435ba..cdf506f 100644 --- a/src/main/kotlin/com/hero/alignlab/domain/dev/application/DevOAuthService.kt +++ b/src/main/kotlin/com/hero/alignlab/domain/dev/application/DevOAuthService.kt @@ -1,10 +1,8 @@ package com.hero.alignlab.domain.dev.application import com.hero.alignlab.client.kakao.KakaoOAuthService -import com.hero.alignlab.client.kakao.client.KaKaoOAuthClient import com.hero.alignlab.client.kakao.config.KakaoOAuthClientConfig import com.hero.alignlab.client.kakao.model.response.GenerateKakaoOAuthTokenResponse -import com.hero.alignlab.common.extension.toJson import com.hero.alignlab.domain.auth.model.OAuthProvider import com.hero.alignlab.domain.auth.model.request.OAuthAuthorizedRequest import com.hero.alignlab.domain.dev.model.response.DevOAuthCodeResponse @@ -31,7 +29,7 @@ class DevOAuthService( request: OAuthAuthorizedRequest ): GenerateKakaoOAuthTokenResponse { return when (provider) { - OAuthProvider.kakao -> kakaoOAuthService.generateOAuthToken(request.code) + OAuthProvider.kakao -> kakaoOAuthService.generateOAuthToken(request.code, config.devRedirectUrl) } } }