As the title suggests the queue should not be consumed if the refresh token request fails for some reason instead the queue should be flushed. This is because if the refresh token request fails and we try to consume the pending requests then these requests will be fired with the old (expired) token and this is unnecessary network overhead as all these requests are eventually going to be rejected by the server because of the expired token.
As the title suggests the queue should not be consumed if the refresh token request fails for some reason instead the queue should be flushed. This is because if the refresh token request fails and we try to consume the pending requests then these requests will be fired with the old (expired) token and this is unnecessary network overhead as all these requests are eventually going to be rejected by the server because of the expired token.