20.12.29 17:05 작성
·
283
0
카카오로 로그인 하기 부분에서
const passportConfig = require("./passport/index");
passportConfig();
위에 두줄 코드를 추가하면
C:\Users\youngman\Desktop\nodejs-book-master\nodejs-book-master\ch9\lecture\node_modules\passport-local\lib\strategy.js:47
if (!verify) { throw new TypeError('LocalStrategy requires a verify callback');} ^
TypeError: LocalStrategy requires a verify callback at Strategy
(C:\Users\youngman\Desktop\nodejs-book-master\nodejs-book-master\ch9\
lecture\node_modules\passport-local\lib\strategy.js:47:24)
at module.exports (C:\Users\youngman\Desktop\nodejs-book-master\nodejs-book-master\ch9\lecture\passport\index.js:17:3) at Object.<anonymous> (C:\Users\youngman\Desktop\nodejs-book-master\nodejs-book-master\ch9\lecture\app.js:17:1) at Module._compile (internal/modules/cjs/loader.js:1151:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1171:10) at Module.load (internal/modules/cjs/loader.js:1000:32) at Function.Module._load (internal/modules/cjs/loader.js:899:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) at internal/main/run_main_module.js:17:47
[nodemon] app crashed - waiting for file changes before starting...
같은 에러가 발생합니다 어떻게 해결해야 하나요..?
코드 두줄을 입력하지 않으면 작동이 서버가 켜집니다