OptionaldomainCookie domain. If not set, defaults to the current domain.
OptionalexpiresCookie expiration as a Date object. If not set, the cookie will be a session cookie.
OptionalmaxMaximum age of the cookie in seconds.
OptionalpathCookie path. Defaults to '/'.
OptionalsameSameSite attribute for the cookie.
OptionalsecureWhether the cookie should only be transmitted over secure protocol (HTTPS).
Options for setting a cookie