Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing in an array of secrets doesn't work #8

Open
philipbeber opened this issue Sep 18, 2020 · 0 comments
Open

Passing in an array of secrets doesn't work #8

philipbeber opened this issue Sep 18, 2020 · 0 comments

Comments

@philipbeber
Copy link

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)
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant