smswithoutborders / SMSwithoutborders-BE

Here is the cloud API and User management services. It is directly configurable with MySQL databases for managing users. Also provides out of the box integrations of Google OAuth end-points and Account authentication
GNU General Public License v3.0
12 stars 3 forks source link

Runtime Error #2

Closed sherlockwisdom closed 3 years ago

sherlockwisdom commented 3 years ago

When I run NPM start I get the following error:

/home/sherlock/Desktop/OAuth-2.0-authentications-API/node_modules/passport-oauth2/lib/strategy.js:86
  if (!options.clientID) { throw new TypeError('OAuth2Strategy requires a clientID option'); }
                           ^

TypeError: OAuth2Strategy requires a clientID option
    at Strategy.OAuth2Strategy (/home/sherlock/Desktop/OAuth-2.0-authentications-API/node_modules/passport-oauth2/lib/strategy.js:86:34)
    at new Strategy (/home/sherlock/Desktop/OAuth-2.0-authentications-API/node_modules/passport-google-oauth2/lib/oauth2.js:48:18)
    at module.exports (/home/sherlock/Desktop/OAuth-2.0-authentications-API/controllers/auth.controllers.js:33:18)
    at Object.<anonymous> (/home/sherlock/Desktop/OAuth-2.0-authentications-API/server.js:35:45)
    at Module._compile (node:internal/modules/cjs/loader:1092:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1121:10)
    at Module.load (node:internal/modules/cjs/loader:972:32)
    at Function.Module._load (node:internal/modules/cjs/loader:813:14)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12)
    at node:internal/main/run_main_module:17:47
sherlockwisdom commented 3 years ago

To follow up: In my config.json I left the following details blank:

- GOOGLE_CLIENT_ID
- GOOGLE_CLIENT_SECRET
- SESSION_SECRET
PromiseFru commented 3 years ago

This is now solved.