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:

https://boilerplate-advancednode.craigmarc.repl.co/auth/github

  1. Request Method:

GET

  1. Status Code:

404

  1. Remote Address:

34.149.204.188:443

  1. Referrer Policy:

strict-origin-when-cross-origin

  1. Response Headers

  2. access-control-allow-credentials:

true

  1. content-length:

9

  1. content-type:

text/plain; charset=utf-8

  1. date:

Fri, 05 May 2023 00:33:35 GMT

  1. etag:

W/“9-0gXL1ngzMqISxa6S1zx3F4wtLyg”

  1. expect-ct:

max-age=2592000, report-uri=“https://sentry.repl.it/api/10/security/?sentry_key=615192fd532445bfbbbe966cd7131791

  1. replit-cluster:

global

  1. strict-transport-security:

max-age=5156303; includeSubDomains

  1. x-powered-by:

Express

  1. Request Headers

  2. :authority:

  1. :method:

GET

  1. :path:

/auth/github

  1. :scheme:

https

  1. accept:

text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.7

  1. accept-encoding:

gzip, deflate, br

  1. accept-language:

en-US,en;q=0.9

  1. cookie:

connect.sid=s%3A8ok0pH2QboIO9yQ-4n6FqOoiZohM1BMV.pHlXIRZIBYveDxXKFCNAhxCWmDmNyLSAx5bTLLNZUqc

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

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

  1. sec-ch-ua-mobile:

?0

  1. sec-ch-ua-platform:

“Windows”

  1. sec-fetch-dest:

document

  1. sec-fetch-mode:

navigate

  1. sec-fetch-site:

same-origin

  1. sec-fetch-user:

?1

  1. upgrade-insecure-requests:

1

  1. user-agent:

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 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.