code: function (cookieV1) {
          return {
              expires: (new Date(cookieV1.expirationDate * 1000)).toString(),
              hostOnly: cookieV1.hostOnly,
              httpOnly: cookieV1.httpOnly,
              domain: cookieV1.domain,
              path: cookieV1.path,
              secure: cookieV1.secure,
              session: cookieV1.session,
              value: cookieV1.value,
              key: cookieV1.name
          };
      }
docs: Converts a V1 cookie to a V2 cookie.
  
  @param {Object} cookieV1 - The v1 cookie object to convert.
  @returns {{expires: string, hostOnly: *, httpOnly: *, domain: *, path: *, secure: *, session: *, value: *}}