@payello-module/jwt 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
}
|