OAuthSwift v2.1.0 Release Notes

Release Date: 2019-11-01 // 4 months ago
    • 👌 Support of macCatalyst, add ASWebAuthenticationURLHandler @nrivard
    • 🛠 Fix some deprecation warnings

    demo app

    • ➕ add twitch to demo app @coolioxlr
    • ➕ add ASWebAuthenticationURLHandler to demo app
    • ✅ demo app tested with macCatalyst
    • 👍 better with dark mode
    • 🗄 use WKWebView instead of deprecated UIWebView

Previous changes from v2.0.0

  • 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