We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b5dbdf commit e15d17cCopy full SHA for e15d17c
lib/jwe/decrypt.js
@@ -96,7 +96,7 @@ function JWEDecrypter(ks, globalOpts) {
96
protect;
97
promise = promise.then(function(rcptList) {
98
if (input.protected) {
99
- protect = base64url.decode(input.protected, "utf8");
+ protect = base64url.decode(input.protected).toString("utf8");
100
protect = JSON.parse(protect);
101
102
// verify "crit" field first
0 commit comments