Skip to content

Commit 7d3e76c

Browse files
committed
Merge pull request #6 from Telefonica/bug/fixTimeComparison
FIX comparison
2 parents 9a4ea80 + 4440a15 commit 7d3e76c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jwt-utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ module.exports = function(configuration) {
356356
}
357357

358358
var expLimit = iatParsed + config.expiration;
359-
if (expLimit < currentDate) {
359+
if (expLimit <= currentDate) {
360360
return cb(errors.NO_FRESH_JWT(), token);
361361
}
362362

0 commit comments

Comments
 (0)