Passport is great. I now discovered that I have some problem with how it handles sessions. I must be using it wrong.
All works well for me with login + sessions + user data I store in my database. However I find that when I move to production environment (cloud on EC2 with multiple servers), I lose the login session each time. This is now clear to me - probably happens since the session is unique to each server.
So my question is - how do I get around this.. I guess I will need to store my own cookie on the user's browser?
Does this mean that I cannot use express.session at all?
Thanks, Ilan