KEYCLOAK-10071 check isNaN for minValidity
This commit is contained in:
parent
1928fa3fb9
commit
80932c07a2
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue