Understanding passport serialize deserialize

Where does user.id go after passport.serializeUser has been called? The user id (you provide as the second argument of the done function) is saved in the session and is later used to retrieve the whole object via the deserializeUser function. serializeUser determines which data of the user object should be stored in the session. The … Read more