The values such as expiresIn (and expiresAt) as well as the expired boolean are not being calculated correctly The exp should be provided in seconds, though the date comparison is using the java date in milliseconds (not divided by 1000)