KEYCLOAK-10071 check isNaN for minValidity

This commit is contained in:
Sergio Livi 2019-04-14 13:08:31 +02:00 committed by Stan Silvert
parent 1928fa3fb9
commit 80932c07a2

View file

@ -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;