openid-client
Advanced tools
Comparing version 3.15.1 to 3.15.2
@@ -5,2 +5,11 @@ # Change Log | ||
## [3.15.2](https://github.com/panva/node-openid-client/compare/v3.15.1...v3.15.2) (2020-06-01) | ||
### Bug Fixes | ||
* allow any JSON numeric value for timestamp values ([a24a759](https://github.com/panva/node-openid-client/commit/a24a7596c038bacd5bdbfc5b8678a96e62b86fd2)), closes [#263](https://github.com/panva/node-openid-client/issues/263) | ||
## [3.15.1](https://github.com/panva/node-openid-client/compare/v3.15.0...v3.15.1) (2020-05-12) | ||
@@ -7,0 +16,0 @@ |
@@ -714,5 +714,5 @@ /* eslint-disable max-classes-per-file */ | ||
} | ||
if (!Number.isInteger(payload.auth_time)) { | ||
if (typeof payload.auth_time !== 'number') { | ||
throw new RPError({ | ||
message: 'JWT auth_time claim must be a JSON number integer', | ||
message: 'JWT auth_time claim must be a JSON numeric value', | ||
jwt: idToken, | ||
@@ -856,5 +856,5 @@ }); | ||
if (payload.iat !== undefined) { | ||
if (!Number.isInteger(payload.iat)) { | ||
if (typeof payload.iat !== 'number') { | ||
throw new RPError({ | ||
message: 'JWT iat claim must be a JSON number integer', | ||
message: 'JWT iat claim must be a JSON numeric value', | ||
jwt, | ||
@@ -866,5 +866,5 @@ }); | ||
if (payload.nbf !== undefined) { | ||
if (!Number.isInteger(payload.nbf)) { | ||
if (typeof payload.nbf !== 'number') { | ||
throw new RPError({ | ||
message: 'JWT nbf claim must be a JSON number integer', | ||
message: 'JWT nbf claim must be a JSON numeric value', | ||
jwt, | ||
@@ -885,5 +885,5 @@ }); | ||
if (payload.exp !== undefined) { | ||
if (!Number.isInteger(payload.exp)) { | ||
if (typeof payload.exp !== 'number') { | ||
throw new RPError({ | ||
message: 'JWT exp claim must be a JSON number integer', | ||
message: 'JWT exp claim must be a JSON numeric value', | ||
jwt, | ||
@@ -890,0 +890,0 @@ }); |
{ | ||
"name": "openid-client", | ||
"version": "3.15.1", | ||
"version": "3.15.2", | ||
"description": "OpenID Connect Relying Party (RP, Client) implementation for Node.js runtime, supports passportjs", | ||
@@ -47,3 +47,3 @@ "keywords": [ | ||
"got": "^9.6.0", | ||
"jose": "^1.25.2", | ||
"jose": "^1.27.1", | ||
"lodash": "^4.17.15", | ||
@@ -50,0 +50,0 @@ "lru-cache": "^5.1.1", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
162132
Updatedjose@^1.27.1