name
string - The name of the cookie.value
string - The value of the cookie.domain
string (optional) - The domain of the cookie; this will be normalized with a preceding dot so that it's also valid for subdomains.hostOnly
boolean (optional) - Whether the cookie is a host-only cookie; this will only betrue
if no domain was passed.path
string (optional) - The path of the cookie.secure
boolean (optional) - Whether the cookie is marked as secure.httpOnly
boolean (optional) - Whether the cookie is marked as HTTP only.session
boolean (optional) - Whether the cookie is a session cookie or a persistent cookie with an expiration date.expirationDate
Double (optional) - The expiration date of the cookie as the number of seconds since the UNIX epoch. Not provided for session cookies.sameSite
string - The Same Site policy applied to this cookie. Can beunspecified
,no_restriction
,lax
orstrict
.