function serialized(e, o) {
      pass(i + 1, e, o);
    }
Registers a function used to serialize user objects into the session.

Examples:

    passport.serializeUser(function(user, done) {
      done(null, user.id);
    });

@api public