findUserById vs session data
I was curious what was being stored in redis for sessions and I noticed my entire user schema is being stored. I also noticed that findUserById is being called on every request. It seems like findUserById should only be called if there isn't a user already stored in session data, right? Am I missing something?
Me too. I'd like to find a way to avoid findUserById being called so frequently.
I was curious about this as well, then noticed that method "findUserById" can have access to req (req.session) by calling with 3 arguments.
everyauth.everymodule.findUserById( function (req, userId, callback) { var sess = req.session; });
Do you what version are you using, or when this was introduced. I don't seem to have the ability to pass req into everyauth.everymodule.findUserById - thanks