Skip to content

Commit

Permalink
fix: correct jws verify input validation check
Browse files Browse the repository at this point in the history
fixes #210
  • Loading branch information
panva committed Aug 27, 2018
1 parent 4e24931 commit be66519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jws/verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ var JWSVerifier = function(ks, globalOpts) {
}
]
};
} else if (!input || "object" === input) {
} else if (!input || "object" !== typeof input) {
throw new Error("invalid input");
}

Expand Down

0 comments on commit be66519

Please sign in to comment.