We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99d06a1 commit d7f43d8Copy full SHA for d7f43d8
core/log-core.js
@@ -908,7 +908,7 @@ var bindDynLogLevel = function (token, logger) {
908
909
// Verifies the given JWT and returns its payload.
910
var verifyAndDecodeJWT = function (token, key) {
911
- if (key == null || typeof key !== "string" || !token) {
+ if (!token || !key || typeof key !== "string") {
912
return null; // no public key or jwt provided
913
}
914
0 commit comments