everyauth.everymodule.findUserById is called with an id parameter that everyauth picks up from req.session. This then can be used to load the user info which is passed into req.user
On localhost when the node app.js server is restarted the session is cleared.
What I'd like to do is to set a cookie which contains the user id that I can than pass to everyauth so that on server restart it knows the id and everymodule.findUserBy Id can do its thing.
I'm using expressjs and have found that both connect-mongodb and cookie-sessions don't work. So what would the suggested way of approaching this be?
In other words is there a way of pre-populating everyauth with user info?