inspired by http://sapandiwakar.in/refresh-oauth-tokens-using-moya-rxswift/ Usage: DataAPIProvider.rx .request(.something) .filterSuccessfulStatusCodes() .retryWithAuthIfNeeded()