
๋ณธ์ธ์ด ๋ฐ์์ค๊ณ ์ถ์ ์ค์ ์ ํด์ค๋ค .

์ฐ๋ฆฌ๋ REST API ๋ฅผ ์ฌ์ฉํ๊ธฐ ๋๋ฌธ์ , REST APIํค ๋ฅผ ๊ฐ์ ธ์ค๊ฒ ๋๋ค.

์ค์ ์ ๋ชจ๋ ๋ง์ณค์ผ๋ฉด
์ฝ๋๋ฅผ ์์ฑํด์ผํ๋ค.
https://devlog-wjdrbs96.tistory.com/232
์ด๊ธ์ ๋ณด๊ณ ์ฌ์ค.. ๊ทธ๋๋ก ์ฐธ๊ณ ํ๋ค.
์ด๊ธ์ ๊ทธ๋๋ก ๋ฐ๋ผํ๊ณ ๋์ ๋๋๊ฒ์ ํ์ธํ ๋ค ์ฝ๋๋ฅผ ๋ฐ๊ฟจ์ .


์ด๋ฌํ ์๋ฌ๊ฐ ๋ฐ์

๋ณด์์ผ๋ก ๋ค์ด๊ฐ์ ,

ํ์ฑํ๋ฅผ ํด์ค๋ค.
์๋ฌ๊ฐ ๋ฐ์ํ๋ค๋ฉด ,
https://devtalk.kakao.com/t/rest-api-bad-client-credentials/102173/2

๋ผ๊ณ ์ ํ์์
app.js ์ app.use(passport.initialize()) ๋ฅผ ํ๋์ง ๋ณธ๋ค

clientSecret ๋ถ๋ถ์ ์ง์์ค๋ค.
https://github.com/rotoshine/passport-kakao/blob/master/sample/sample.js
์ด๋ถ๋ถ์ ์ฐธ๊ณ ํด์ ์ฝ๋๋ฅผ ๋ค์ ์์ฑํด ์ค๋ค.
localhost:4000/user/kakao