Using apollo-server-express, express-session and socketio – Cors issue present when socketio tries to connect on the client side

I am trying to use apollo-server-express to maintain a graphql endpoint and other endpoints to perform oAuth with twitter. I wanted to perform the oauth in the client in a way that a browser tab opens and a socket transmits a "MESSAGE" (as an example) from the callback to the server back to the main… Read More Using apollo-server-express, express-session and socketio – Cors issue present when socketio tries to connect on the client side

passport: req.isAuthenticated() is not a function and req.user is not being set by passport

I’m creating a web application using the MERN stack for which I want to implement google OAuth and session and I’m using ‘express-session’ and ‘passport.js’ for this. Everything seems to be working as expected but I’m getting an error: req.isAuthenticated isn’t function. Also, the value of req.user is "undefined" but, the cookie is being generated… Read More passport: req.isAuthenticated() is not a function and req.user is not being set by passport