Create a new instance of CookieClient
The encryption instance for cookie operations
Encrypt a key value pair to be sent in the cookie header
The cookie key
The value to encrypt
The encrypted cookie string or null if encryption fails
Sign a key value pair to be sent in the cookie header
The cookie key
The value to sign
The signed cookie string or null if signing fails
Encode a key value pair to be sent in the cookie header
Unused key parameter
The value to encode
Whether to stringify the value before encoding
The encoded cookie string or null if encoding fails
Unsign a signed cookie value
The cookie key
The signed cookie value to unsign
The original value if valid signature, null otherwise
Decrypt an encrypted cookie value
The cookie key
The encrypted cookie value to decrypt
The decrypted value or null if decryption fails
Decode an encoded cookie value
Unused key parameter
The encoded cookie value to decode
Whether the value was stringified during encoding
The decoded value or null if decoding fails
Parse response cookie
The cookie key
The cookie value to parse
The parsed value or undefined if parsing fails
Cookie client exposes the API to parse/set AdonisJS cookies as a client.