I have passed the tests to this challenge but when i try to actually log in using the log in with github button not found is printed on the screen. I have doublechecked all my urls and they all seem to be ok as do my userid and user secret variables. The console log doesnt print anything at all and this is what i get from the browser log:
I started this lesson over and now it is working i have no idea what is wrong with my original code I’ll have to print it out and go through it line by line at some point
I thought it was working now i get this error even though i know my client secret and client id are correct?
TokenError: The client_id and/or client_secret passed are incorrect.
at OAuth2Strategy.parseErrorResponse (/home/runner/boilerplate-advancednodenew-2/node_modules/passport-oauth2/lib/strategy.js:373:12)
at OAuth2Strategy._createOAuthError (/home/runner/boilerplate-advancednodenew-2/node_modules/passport-oauth2/lib/strategy.js:420:16)
at /home/runner/boilerplate-advancednodenew-2/node_modules/passport-oauth2/lib/strategy.js:177:45
at /home/runner/boilerplate-advancednodenew-2/node_modules/passport-github/lib/strategy.js:77:16
at /home/runner/boilerplate-advancednodenew-2/node_modules/oauth/lib/oauth2.js:209:7
at passBackControl (/home/runner/boilerplate-advancednodenew-2/node_modules/oauth/lib/oauth2.js:134:9)
at IncomingMessage. (/home/runner/boilerplate-advancednodenew-2/node_modules/oauth/lib/oauth2.js:157:7)
at IncomingMessage.emit (node:events:525:35)
at endReadableNT (node:internal/streams/readable:1359:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Anyone have any idea about this one im lost? I went through the course and actually used someone elses code since my code was passing tests but not working and this lesson is largely just cutting and pasteing code. But i would like to figure this out so that i understand how it works.
It did redirect me to github which my code didnt but i get the above error even though i know i have the correct client id and client secret. Ive triple checked them.