Skip to content

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

@philipbeber

Description

@philipbeber

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)
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions