OAuthSwift / OAuthSwiftAlamofire

Utility method to sign Alamofire request
MIT License
104 stars 38 forks source link

Requests while refreshing are not handled properly #22

Open konstk1 opened 4 years ago

konstk1 commented 4 years ago

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.