You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our API doesn't use an additional HTTP header to indicate authentication failure, but instead has error codes in the JSON response body. Therefore we must decode and evaluate the DataRequest.data in Authenticator.refresh(_:for:completion:).
Probably a good idea. We likely don't want to expose the Request directly, as there are types which won't have available Data, but some method of making it visible would be a good idea.
Problem
Our API doesn't use an additional HTTP header to indicate authentication failure, but instead has error codes in the JSON response body. Therefore we must decode and evaluate the
DataRequest.data
inAuthenticator.refresh(_:for:completion:)
.Feature Request
The simplest solution would be to change
to
There is probably a better/non-breaking approach.
Value to Alamofire
Accommodate a broader variety of API authentication implementations.
The text was updated successfully, but these errors were encountered: