added logic for a proactive oauth token refresher