Skip to content

Commit e15d17c

Browse files
committed
Fix: improper call to base64url.decode (fixes #80)
1 parent 6b5dbdf commit e15d17c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jwe/decrypt.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function JWEDecrypter(ks, globalOpts) {
9696
protect;
9797
promise = promise.then(function(rcptList) {
9898
if (input.protected) {
99-
protect = base64url.decode(input.protected, "utf8");
99+
protect = base64url.decode(input.protected).toString("utf8");
100100
protect = JSON.parse(protect);
101101

102102
// verify "crit" field first

0 commit comments

Comments
 (0)