@payello-module/jwt 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/JWT.js +1 -1
- package/package.json +1 -1
package/dist/JWT.js
CHANGED
@@ -59,7 +59,7 @@ export class JWT {
|
|
59
59
|
}
|
60
60
|
// Validates the present of required properties in the payload.
|
61
61
|
const requiredProps = opts.requiredProps || ["jti", "iss", "iat"];
|
62
|
-
for (const prop
|
62
|
+
for (const prop of requiredProps) {
|
63
63
|
if (!payload[prop]) {
|
64
64
|
throw new JwtError(`Payload missing ${prop} value`);
|
65
65
|
}
|