NewCookie Data Type

Properties
name data type constraints description
expiry number  
comment string  
secure boolean required boolean
httpOnly boolean required boolean
sameSite SameSite  
maxAge number required int
Properties inherited from Cookie
domain string  
name string  
version number required int
path string  
value string  

Example

{
  "expiry" : 12345,
  "comment" : "...",
  "secure" : true,
  "httpOnly" : true,
  "sameSite" : "NONE",
  "maxAge" : 12345,
  "domain" : "...",
  "name" : "...",
  "version" : 12345,
  "path" : "...",
  "value" : "..."
}