OAuthSwift v2.0.0 Release Notes

Release Date: 2019-06-10 // about 3 years ago
  • Big breaking change on callback closure!

    🔀 Result type is now used to merge the success and failure closure into one.

    oauthswift.authorize(..) { result inswitch result { case .success(let (credential, response, parameters)):// do somethingcase .failure(let error):// do something } }
    
    oauthswift.client.get(...) { result inswitch result { case .success(let response):// do somethingcase .failure(let error):// do something } }
    

    ⬆️ You can use the previous version 1.4.x if you do not want to upgrade your code