From 245444abd8cbafb3013eae0e9076ee62ff169067 Mon Sep 17 00:00:00 2001 From: DongGeon0908 Date: Mon, 29 Jul 2024 20:42:02 +0900 Subject: [PATCH] fix: poc resolve OAuth --- .../hero/alignlab/domain/dev/application/DevOAuthService.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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) } } }