Passport.js serializeUser Attachment Persistence Across Express-session Restores
The objective is to verify whether user objects attached to req.user by a Passport.js strategy survive an Express-session restore, where the session store serializes the entire session payload. Because strategies may attach functions, class instances, Dates, Symbols, or other non‑JSON‑compatible values, and because session middleware uses JSON (or custom) se