This adds a catch(errorQueue) case to refreshAuth and replaces finally(flushQueue) with then(flushQueue). The rejection case will issue OperationResults for all Operations in the queue and will pass the authentication error that refreshAuth rejected with on as the network error.
Summary
This adds a
catch(errorQueue)
case torefreshAuth
and replacesfinally(flushQueue)
withthen(flushQueue)
. The rejection case will issueOperationResult
s for allOperation
s in the queue and will pass the authentication error thatrefreshAuth
rejected with on as the network error.Set of changes
refreshAuth
rejections