diff --git a/adapters/oidc/js/src/main/resources/keycloak.js b/adapters/oidc/js/src/main/resources/keycloak.js index 2dc28f2531..91abc5127e 100755 --- a/adapters/oidc/js/src/main/resources/keycloak.js +++ b/adapters/oidc/js/src/main/resources/keycloak.js @@ -431,6 +431,9 @@ var expiresIn = kc.tokenParsed['exp'] - Math.ceil(new Date().getTime() / 1000) + kc.timeSkew; if (minValidity) { + if (isNaN(minValidity)) { + throw 'Invalid minValidity'; + } expiresIn -= minValidity; } return expiresIn < 0;