I found a few issues on the main passport repo, however, I think this primarily pertains to this specific strategy as I\'m able to successfully authenticate using the passport-g
Hey if someone is still having the issue I have another solution...
add this code :
app.use(passport.session({ secret: 'Shhh.. This is a secret', cookie: { secure: true } }));
just add cookie: { secure: true }
and it will work just fine...
I too had this issue and above technique helped me solve this.
... Sigh. I forgot I changed the subdomain. So, the cookie wasn't readable because the domain name was different.
To solved this problem in my case, was necessary setup the host file to use custom domain instead localhost or 127.0.0.1..