Tell us what’s happening:
Describe your issue in detail here.
I’m getting this Error can someone help me with this please did add GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET
Listening on port 8080
Error: Unknown authentication strategy “github”
at attempt (/home/runner/boilerplate-advancednode-1/node_modules/passport/lib/middleware/authenticate.js:190:39)
at authenticate (/home/runner/boilerplate-advancednode-1/node_modules/passport/lib/middleware/authenticate.js:367:7)
at Layer.handle [as handle_request] (/home/runner/boilerplate-advancednode-1/node_modules/express/lib/router/layer.js:95:5)
at next (/home/runner/boilerplate-advancednode-1/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/home/runner/boilerplate-advancednode-1/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/home/runner/boilerplate-advancednode-1/node_modules/express/lib/router/layer.js:95:5)
at /home/runner/boilerplate-advancednode-1/node_modules/express/lib/router/index.js:281:22
at Function.process_params (/home/runner/boilerplate-advancednode-1/node_modules/express/lib/router/index.js:341:12)
at next (/home/runner/boilerplate-advancednode-1/node_modules/express/lib/router/index.js:275:10)
at urlencodedParser (/home/runner/boilerplate-advancednode-1/node_modules/body-parser/lib/types/urlencoded.js:91:7)
Error: Unknown authentication strategy “github”
at attempt (/home/runner/boilerplate-advancednode-1/node_modules/passport/lib/middleware/authenticate.js:190:39)
at authenticate (/home/runner/boilerplate-advancednode-1/node_modules/passport/lib/middleware/authenticate.js:367:7)
at Layer.handle [as handle_request] (/home/runner/boilerplate-advancednode-1/node_modules/express/lib/router/layer.js:95:5)
at next (/home/runner/boilerplate-advancednode-1/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/home/runner/boilerplate-advancednode-1/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/home/runner/boilerplate-advancednode-1/node_modules/express/lib/router/layer.js:95:5)
at /home/runner/boilerplate-advancednode-1/node_modules/express/lib/router/index.js:281:22
at Function.process_params (/home/runner/boilerplate-advancednode-1/node_modules/express/lib/router/index.js:341:12)
at next (/home/runner/boilerplate-advancednode-1/node_modules/express/lib/router/index.js:275:10)
at urlencodedParser (/home/runner/boilerplate-advancednode-1/node_modules/body-parser/lib/types/urlencoded.js:91:7)
Your project link(s)
solution: https://boilerplate-advancednode-1--aneal07.repl.co
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Challenge Information:
Advanced Node and Express - Implementation of Social Authentication