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
ℹ Please fill out this template when filing an issue.
All lines beginning with an ℹ symbol instruct you with what info we expect. You can delete those lines once you've filled in the info.
Per our *CONTRIBUTING guidelines, we use GitHub for
bugs and feature requests, not general support. Other issues should be opened on Stack Overflow with the tag alamofire.
Please remove this line and everything above it before submitting.
Where is 'completion(.failure(error))' in 'func refresh(_ credential: OAuthCredential, for session: Session, completion: @escaping (Result<OAuthCredential, Error>) -> Void)'?
And Are you sure you chose the correct initializer? In 'Date(timeIntervalSinceNow: expiration)' ?
What did you do?
What did you expect to happen?
ℹ 'refresh' delegate method will be called once to refresh token and then recall all the other requests with new credentials
What happened instead?
ℹ 'refresh' delegate method is called for each request when 'requiresRefresh' is set
Alamofire Environment
Alamofire version: 5.2.2
Xcode version: 11.7
Swift version: 4.2
Platform(s) running Alamofire: iOS
macOS version running Xcode: 10.15.6 (19G2021)
Demo Project
ℹ Cannot provide demo project
The text was updated successfully, but these errors were encountered: