cookie-es
cookie-es copied to clipboard
Parse multiple cookies with same name
Describe the feature
Background: https://github.com/jshttp/cookie/issues/60 (found it in an issue reported by @atinux)
Incoming cookie value can have the same name repeated and we pick the first.
We can allow them in two possible ways:
{ sameKeysPolicy: 'last' }as proposed in https://github.com/jshttp/cookie/issues/60{ multiple: true }that makes return typeRecord<string, string | string[]>{ multiple: true }that concatinates multiple values with,