Added
sendRequestWithRetries
function added as part of theNetworkHelperclass
- For an API request that results in a 500-level error response, the SDK now executes up to five retries. Before each of the final three attempts, there is a two-second delay.
Changed
- updates
sendRequest
inRequestProcessorUtil
to retry the API request that resulted in a 401 response upon receipt of a new JWT - updates
NetworkHelper
class logic to usesendRequestWithRetries
method which wraps the originalnetworkSession.makeRequest
- When an API request fails with a 401 because of an invalid JWT token, the SDK now immediately requests a new JWT token for the signed-in user.