Login with kakao gives error 400

Hi,
when calling get Token API I am getting 400 bad request , while debuging I am getting this log:

HttpResponseProxy{HTTP/1.1 400 Bad Request [Date: Thu, 29 Apr 2021 08:45:01 GMT, Content-Type: application/json;charset=utf-8, Transfer-Encoding: chunked, Connection: keep-alive, Pragma: no-cache, Cache-Control: no-store, X-XSS-Protection: 1; mode=block, X-Frame-Options: DENY, X-Content-Type-Options: nosniff, Access-Control-Allow-Origin: *, Access-Control-Allow-Methods: GET, POST, OPTIONS, Access-Control-Allow-Headers: Authorization, KA, Origin, X-Requested-With, Content-Type, Accept] ResponseEntityProxy{[Content-Type: application/json;charset=utf-8,Chunked: true]}}

this is the URL I am caling https://kauth.kakao.com/oauth/token

This is my request details :

<{grant_type=[authorization_code], code=[tSmSV8-9EtRpkJc-4Ton-GMGNyQImxqJ3lhpV_-pWpx5T2qnTzNyE_JwXrzkQu_xHF9uOQorDNIAAAF5HMgSvw], redirect_uri=[https://int-www2.hm.com/ko_kr/kakao/authorize], client_id=[XXXXXXXXXXX], client_secret=[XXXXXXXXXXXXX]},[]>

hi~

Let me know the login url.

https://kauth.kakao.com/oauth/token

What I want is your site’s login url page address

it is only in our integration env . and can not reproduce it in local .

https://int-www2.hm.com/ko_kr/kakao/authorize

{"error":"invalid_grant","error_description":"Redirect URI mismatch.","error_code":"KOE303"}

Looking at the log, the above error was found.
The same redirect URI must be used to pass “auth” and “token” requests.

can you plz find the url send in both ? I tried to find it but could not find the diff , is there any logs in this sens ?

https://int-www2.hm.com/ko_kr/kakao/authorize?code=qh6VHlwJOhWHcQ5OFMviFIEaZjUnT7qZ0XdqLzi_oa_EWZSpAixp7zZeIxf5LCrn_WtcQQopyWAAAAF5HPQ1bg&state=eyJpbml0aWF0b3IiOiJMb2dpbiIsInJlZmVycmVyIjoiL2xvZ2luIn0%3D

https://kauth.kakao.com/oauth/authorize?client_id=87bbf59ed2b17fd4db0f3316afce2343&state=eyJpbml0aWF0b3IiOiJMb2dpbiIsInJlZmVycmVyIjoiL2xvZ2luIn0%3D&redirect_uri=https%3A%2F%2Fint-www2.hm.com%2Fko_kr%2Fkakao%2Fauthorize&response_type=code&auth_tran_id=eszcuhxnp3s87bbf59ed2b17fd4db0f3316afce2343ko2oobmi&ka=sdk%2F1.39.14%20os%2Fjavascript%20sdk_type%2Fjavascript%20lang%2Fen%20device%2FMacIntel%20origin%2Fhttps%3A%2F%2Fint-www2.hm.com&is_popup=false

April 29th 2021, 18:27:18.167 /oauth/token 200

{"access_token":"8vWw0YYLhJDr2eDRUdIsSCPuH6AexwxFarxhlwopb7gAAAF5HPQ5jg","token_type":"bearer","refresh_token":"g8QXz4NYeEOvx5KBq1k6tfUjsliFMrWqc9DNWQopb7gAAAF5HPQ5jQ","expires_in":21599,"scope":"birthday account_email talk_message gender birthyear profile plusfriends phone_number","refresh_token_expires_in":5183999}

April 29th 2021, 18:27:17.105 /oauth/authorize 302
authorizationCode : qh6VHlwJOhWHcQ5OFMviFIEaZjUnT7qZ0XdqLzi_oa_EWZSpAixp7zZeIxf5LCrn_WtcQQopyWAAAAF5HPQ1bg

Responded normally.

I am still getting 400 with this autorization code : RboRwe9ADzjvybfcpTDJG2AIUa14C1UxRASLLkEi4psipFNlkikamCWbszgKql8VM3E9tgopcBQAAAF5HYfm-g

The token returned normally.