Returns remaining time until expiry date.
static Duration getRemainingTime(String token) { final expirationDate = getExpirationDate(token); return expirationDate.difference(DateTime.now()); }