code: function compatMaxage(opts) {
    if (opts) {
      opts.maxage = opts.maxage === undefined
        ? opts.maxAge
        : opts.maxage;
      delete opts.maxAge;
    }
  }
docs: cookie use maxage, hack to compat connect type `maxAge`