Passport.js session serialization: configuring serializeUser to store minimal user identifier
Goal: Configure Passport.js's serializeUser callback so that the session store holds only the essential identifier needed to reconstruct the user object, thereby reducing memory usage and I/O latency in high‑traffic Node.js applications. Uncertainty: It is unclear what minimal payload serializeUser should return (e.g., just the user ID, a signed token, or a