Fixed a bug with the refresh token expiring calculation.