개발 환경 : React
요청코드 :
const response = await axios({
url: KAKAO_URL,
method: "post",
headers: {
"Content-Type": "application/x-www-form-urlencoded;charset=utf-8"
},
data: JSON.stringify({
grant_type: "authorization_code",
client_id: app_key,
redirect_uri: local_network_url + "/Login#",
code: kakaoCode
})
});
받은 response
Request URL: https://kauth.kakao.com/oauth/token
Request Method: POST
Status Code: 401 Unauthorized
{error: "invalid_client", error_description: "Bad client credentials"}
도저히 어떤 문제인지 파악이 안됩니다. 급하게 출시해야 하는데 여기서 막히니 막막하네요…
혹시 Request 확인 부탁드려도 될까요?