Updated code to utilize refresh_token if available to obtain new access tokens upon re-auth.