Inputs
CookieOptions
Input options for defining a cookie to be added with ‘addCookies’.
Definition
Fields
name
: String!
The name of the cookie. Example: "user_preference"
.
value
: String!
The value of the cookie. Example: "theme=dark"
.
domain
: String!
The domain for which the cookie is valid. Example: ".example.com"
.
path
: String!
The path for which the cookie is valid. Example: "/"
.
expires
: Int!
Expiration date as a Unix timestamp in seconds. Use -1 for session cookies.
httpOnly
: Boolean!
If true, the cookie is only accessible via HTTP and not client-side scripts.
secure
: Boolean!
If true, the cookie will only be sent over secure (HTTPS) connections.
sameSite
: SameSite!
SameSite attribute for the cookie (STRICT, LAX, NONE). See SameSite
enum.