code: function getCookieOptions() {
      let cookieOpt = {
        httpOnly: true
      };
      if (opt.cookieDomain) {
        cookieOpt.domain = opt.cookieDomain;
      }
      if (opt.secure) {
        cookieOpt.secure = true;
      }
      if (opt.cookiePath) {
        cookieOpt.path = opt.cookiePath;
      }
      return cookieOpt;
    }
docs: /* Returns the cookie options.