If a request comes in with a 401 while token refresh is in progress, the completion handler of retry is never called and I believe the request just "disappears."
In fact, documentation for retry states:
The one requirement is that the completion closure is called to ensure the request is properly cleaned up after.
If a request comes in with a
401
while token refresh is in progress, the completion handler ofretry
is never called and I believe the request just "disappears."In fact, documentation for
retry
states: