Request failed with status code 401

안녕하세요
아이디는 701381 이구요
현재 도메인은 https://kko-auth.genu.io 를 쓰고 있고
Redirect URI는 https://kko-auth.genu.io/oauth/kakao/login 로 설정한 상태입니다.

인가코드까지는 잘 받고 있는것 확인했는데
토큰을 요청하는 과정에서 이런 에러가 발생해서 문의드립니다
[Nest] 85310 - 02/08/2022, 9:48:44 AM ERROR [ExceptionsHandler] Request failed with status code 401
Error: Request failed with status code 401
at createError (/root/node_modules/axios/lib/core/createError.js:16:15)
at settle (/root/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd (/root/node_modules/axios/lib/adapters/http.js:312:11)
at IncomingMessage.emit (node:events:532:35)
at endReadableNT (node:internal/streams/readable:1343:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21)

스크린샷, 2022-02-08 18-49-16

client_id와 redirect_uri, code는 정상적으로 뜨는 것 확인했습니다.
확인 부탁드려요~

해당 디벨로퍼스 앱으로 토큰요청 로그가 없는 것을 보니 body가 잘못전달된 것 같습니다.

Content-type: application/x-www-form-urlencoded;charset=utf-8 에 body데이터 x-www-form-urlencoded 방식으로 잘 처리 하셨는지 확인 부탁드려요.

REST API | Kakao Developers 문서

[rest api 예제] node.js- 카카오 로그인, 카카오 친구목록 조회, 나에게 메시지 발송

1개의 좋아요