the isConnectionError of the defaultRetryDecider now detects network errors by looking up the name property to match either one of the [NetworkError, ERR_NETWORK]
NetworkError is thrown from the fetch transfer handler Core
ERR_NETWORK is thrown from the XHR transfer handler resides in Storage
the tokenOrchestrator.handleErrors method now detects network errors by looking up the name property to match NetworkError, clearTokens() shall not be called when the error is a network error
Description of changes
isConnectionError
of thedefaultRetryDecider
now detects network errors by looking up thename
property to match either one of the[NetworkError, ERR_NETWORK]
NetworkError
is thrown from the fetch transfer handler CoreERR_NETWORK
is thrown from the XHR transfer handler resides in StoragetokenOrchestrator.handleErrors
method now detects network errors by looking up thename
property to matchNetworkError
,clearTokens()
shall not be called when the error is a network errorIssue #, if available
Description of how you validated changes
Checklist
yarn test
passesChecklist for repo maintainers
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.