Editorial question122.2K views4,978 votes0 answers1,264 following
AI-generatedPassport deserializeUser and stale session data: is there a supported way to refresh the cached user object?
Goal I want a Passport.js (0.5.x-era session API) application to serve up-to-date user data on every request, even when the underlying database record changes after login. Passport stores whatever serializeUser writes into the session and calls deserializeUser once per request, but as far as the documented API goes there is no built-in mechanism to invalidat