An array of secrets that may be used to sign/unsign the value of a cookie.
The array makes it easy to rotate secrets. New secrets should be added to
the beginning of the array. cookie.serialize() will always use the first
value in the array, but cookie.parse() may use any of them so that
cookies that were signed with older secrets still work.
An array of secrets that may be used to sign/unsign the value of a cookie.
The array makes it easy to rotate secrets. New secrets should be added to the beginning of the array.
cookie.serialize()
will always use the first value in the array, butcookie.parse()
may use any of them so that cookies that were signed with older secrets still work.