Skip to content

Commit

Permalink
fix(): algorithm not algorithms
Browse files Browse the repository at this point in the history
  • Loading branch information
reecebrend committed Jan 10, 2019
1 parent 21f79cb commit 45d60ea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/components/state-resources/get-crypto-entry/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ module.exports = class GetCryptoEntry {
const id = JSONPath({ path: path, json: document })
try {
const cryptoRecord = await this.cryptoModel.findById(id)
console.log('ARON LOOK WHAT DOES THIS SAY? :', encryptionKey)
const decrypted = await jwt.verify(cryptoRecord.encryptedValue, encryptionKey, { algorithms: ['HS256'] })
const decrypted = await jwt.verify(cryptoRecord.encryptedValue, encryptionKey, { algorithm: 'HS256' })
for (const decryptionItem of this.pathToDecryptionTargets) {
const data = JSONPath({ path: decryptionItem, json: event, flatten: true })
dottie.set(data[0], key, decrypted.res[0])
Expand Down

0 comments on commit 45d60ea

Please sign in to comment.