def METHOD_NAME(self, token):
    if self._proactive_refresh:
        interval = timedelta(minutes=self._DEFAULT_AUTOREFRESH_INTERVAL_MINUTES)
    else:
        interval = timedelta(minutes=self._ON_DEMAND_REFRESHING_INTERVAL_MINUTES)
    return (token.expires_on - get_current_utc_as_int()) < interval.total_seconds()