node.js로 사이트를 개발하고 있습니다.
카카오톡 등 SNS 로그인 API를 붙이고 있는데, 문제가 좀 있습니다.
아래와 같은 메시지(Bad client credentials) 나오는데요.
node.js에 passport를 사용하고 있구요.
이것이, 프로그램 문제인지, 아니면, app setting의 문제인지 정확히 알길이 없습니다.
npm install passport-kakao
이것을 설치하게되면, sample 디렉토리가 있습니다.
이 sample 디렉토리에 있는 예제를 구동을 해도, 같은 에러가 납니다.
혹시, 비슷한 문제를 해결하신 분 계실까요?
TokenError: Bad client credentials
at Strategy.OAuth2Strategy.parseErrorResponse (E:\test\node\easy-node-authentication\node_modules\passport-kakao\node_modules\passport-oauth2\lib\strategy.js:298:12)
at Strategy.OAuth2Strategy._createOAuthError (E:\test\node\easy-node-authentication\node_modules\passport-kakao\node_modules\passport-oauth2\lib\strategy.js:345:16)
at E:\test\node\easy-node-authentication\node_modules\passport-kakao\node_modules\passport-oauth2\lib\strategy.js:171:43
at E:\test\node\easy-node-authentication\node_modules\oauth\lib\oauth2.js:191:18
at passBackControl (E:\test\node\easy-node-authentication\node_modules\oauth\lib\oauth2.js:132:9)
at IncomingMessage. (E:\test\node\easy-node-authentication\node_modules\oauth\lib\oauth2.js:157:7)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)