You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Readme says secret can be "a string or array used for encrypting cookies.". But the code doesn't handle arrays so fails here:
if (algorithm === 'aes256' && key.length !== 32) {
const errorLabel = `A 32-bits key must be used with aes256. Given: ${key.length} (${key}-bits)`
throw new Error(errorLabel)
}
The text was updated successfully, but these errors were encountered:
The Readme says
secret
can be "a string or array used for encrypting cookies.". But the code doesn't handle arrays so fails here:The text was updated successfully, but these errors were encountered: