Fix
- JSON parsing to get access token when there is one parameter with only number
- Presentation of
OAuthWebViewController
by choosing the good parent view controller, not only the root one
Change
- Add
parameters
to OAuth1 callback #81(@quangbuule #152) - Add WatchOS support #135 (as proof of concept, you must do find a way to handle authorisation URL, maybe open on iOS)
- Allow to change dispatch queue used by HTTP request (default: main queue)
- Factorise code between OAuth1Swift & OAuthSwift2 :
After updating you must edit your code:
- For OAuth1 you must change the callback
credential, response in
bycredential, response, parameters in
orcredential, response, _ in
- ⚠️
response
into callback could now be nil OAuth1Swift.handleOpenURL(url:)
&OAuth2Swift.handleOpenURL(url:)
are replaced byOAuthSwift.handleOpenURL(url:)
If you don't want to edit your code, do not update OAuthSwift.
You can with carthage and cocoapod for instance use "~> 0.4.8"