tough-cookie.createcookieoptions.creation.md

May 3, 2024 ยท View on GitHub

Home > tough-cookie > CreateCookieOptions > creation

CreateCookieOptions.creation property

Set to the date and time when a Cookie is initially stored or a matching cookie is received that replaces an existing cookie (See RFC6265 Section 5.3).

Also used to maintain ordering among cookies. Among cookies that have equal-length path fields, cookies with earlier creation-times are listed before cookies with later creation-times (See RFC6265 Section 5.4).

Signature:

creation?: Date | 'Infinity' | null;