Skip to content

Commit

Permalink
fix: generate token url params
Browse files Browse the repository at this point in the history
  • Loading branch information
DongGeon0908 committed Jul 29, 2024
1 parent 3228c04 commit af141d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class KakaoOAuthService(
clientId = config.clientSecretCode,
redirectUri = redirectUri ?: config.redirectUrl,
code = code,
clientSecret = config.clientSecretCode
)

return generateOAuthToken(request)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,13 @@ class SuspendableKakaoOAuthClient(
.post()
.uri("/token") { builder ->
builder
.queryParam("grant_type", "authorization_code")
.queryParam("grant_type", request.grantType)
.queryParam("client_id", request.clientId)
.queryParam("redirect_uri", request.redirectUri)
.queryParam("code", request.code)
.queryParam("client_secret", request.clientSecret)
.build()
}
.bodyValue(request)
.request()
}
}

0 comments on commit af141d1

Please sign in to comment.