@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.
Files changed (2) hide show
  1. package/dist/JWT.js +1 -1
  2. 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 in requiredProps) {
62
+ for (const prop of requiredProps) {
63
63
  if (!payload[prop]) {
64
64
  throw new JwtError(`Payload missing ${prop} value`);
65
65
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payello-module/jwt",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "author": "Payello <devsupport@payello.com> (https://payello.com/)",
5
5
  "displayName": "@payello-module/jwt",
6
6
  "description": "JSON Web Token Module",