/root/nodejs/node-express-mongoose-demo/node_modules/passport-oauth2/lib/strategy.js:82 if (!options.clientID) { throw new TypeError('OAuth2Strategy requires a clientID option'); } ^ TypeError: OAuth2Strategy requires a clientID option at Strategy.OAuth2Strategy (/root/nodejs/node-express-mongoose-demo/node_modules/passport-oauth2/lib/strategy.js:82:34) at new Strategy (/root/nodejs/node-express-mongoose-demo/node_modules/passport-google-oauth20/lib/strategy.js:52:18) at Object.<anonymous> (/root/nodejs/node-express-mongoose-demo/config/passport/google.js:16:18) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object.<anonymous> (/root/nodejs/node-express-mongoose-demo/config/passport.js:11:16) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) [nodemon] app crashed - waiting for file changes before starting...

Author : erroe

May 29, 2018

Edit 

Comments

Evan Hendrix : great article

July 2, 2018