Communicate by Emitting 404 on redirect

Tell us what’s happening:
when i verify myself with github it redirects to the callback and says NotFound which is the default 404 msg in the routes.

i did this socket.io stuff a couple of days ago and have tried c/p full pages over to work out where the error is occurring however it always says not found. the callback is correct and the env variables setup

i must of done something really stupid for this 2 be so hard to troubleshot by myself

edit: i turned off the authcheck on the route /chat and went to /chat and it loaded without an issue
Your code so far
https://glitch.com/edit/#!/yellow-podium-0wgzkj8xzg?path=app/routes.js:27:11

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36.

Challenge: undefined

Link to the challenge:
https://www.freecodecamp.org/learn/information-security-and-quality-assurance/advanced-node-and-express/communicate-by-emitting

Hi @linehammer !

Thank you for your response but this post is over a year old.

Please try to participate in newer topics.

Thanks!