secure-cookie
Ƭ CookiesOptions: Object
Name | Type | Description |
---|---|---|
encrypted? |
boolean |
Encrypt cookies by default and assume received cookies are encrypted. default false |
keyStore? |
KeyStore |
KeyStore to be used for signing and encrypting |
secure? |
boolean |
Mark cookies as secure by default. default req.protocol |
signIdentifier? |
SignIdentifier |
If string, provided value will be appended cookie name with dot. For example with given value mysig signature cookie name will be cookiename.mysig default sig |
signed? |
boolean |
a boolean indicating whether the cookie is to be signed (false by default). If this is true, another cookie of the same name with the signIdentifier will also be sent, with a 27-byte url-safe base64 SHA1 value representing the hash of cookie-name=cookie-value against the first KeyStore key. This signature key is used to detect tampering the next time a cookie is received. default false |
Ƭ GetCookieOptions: CookiesOptions
Ƭ SetCookieOptions: CookiesOptions
& CookieAttrs