Fixed token expiry check