diff --git a/src/verifier.js b/src/verifier.js index a506d5b..256d52d 100644 --- a/src/verifier.js +++ b/src/verifier.js @@ -202,8 +202,7 @@ function verifyToken( // Verify the payload const now = clockTimestamp || Date.now() - for (const validator of validators) { - const { type, claim, allowed, array, modifier, greater, errorCode, errorVerb } = validator + for (const { type, claim, allowed, array, modifier, greater, errorCode, errorVerb } of validators) { const value = payload[claim] const arrayValue = Array.isArray(value) const values = arrayValue ? value : [value]