Skip to content

Commit

Permalink
Fix: improper call to base64url.decode (fixes cisco#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxwolf committed Dec 29, 2016
1 parent 4005f31 commit d2ba2af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jwe/decrypt.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function JWEDecrypter(ks, globalOpts) {
protect;
promise.then(function(rcptList) {
if (input.protected) {
protect = base64url.decode(input.protected, "utf8");
protect = base64url.decode(input.protected).toString("utf8");
protect = JSON.parse(protect);

// verify "crit" field first
Expand Down

0 comments on commit d2ba2af

Please sign in to comment.