Implementation of Social Authentication III

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:

  1. Request URL:

  1. Request Method:


  1. Status Code:


  1. Remote Address:

  1. Referrer Policy:


  1. Response Headers

  2. access-control-allow-credentials:


  1. content-length:


  1. content-type:

text/plain; charset=utf-8

  1. date:

Fri, 05 May 2023 00:33:35 GMT

  1. etag:


  1. expect-ct:

max-age=2592000, report-uri=“

  1. replit-cluster:


  1. strict-transport-security:

max-age=5156303; includeSubDomains

  1. x-powered-by:


  1. Request Headers

  2. :authority:

  1. :method:


  1. :path:


  1. :scheme:


  1. accept:


  1. accept-encoding:

gzip, deflate, br

  1. accept-language:


  1. cookie:


  1. referer:
  1. sec-ch-ua:

“Chromium”;v=“112”, “Microsoft Edge”;v=“112”, “Not:A-Brand”;v=“99”

  1. sec-ch-ua-mobile:


  1. sec-ch-ua-platform:


  1. sec-fetch-dest:


  1. sec-fetch-mode:


  1. sec-fetch-site:


  1. sec-fetch-user:


  1. upgrade-insecure-requests:


  1. user-agent:

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36 Edg/112.0.1722.68

here is my replit link:

boilerplate-advancednode - Replit

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.

boilerplate-advancednodenew (2) - Replit

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.