/OAuthSwiftAuthenticationServices

Use ASWebAuthenticationSession in OAuthSwift in iOS 12.0+

Primary LanguageSwift

OAuthSwiftAuthenticationServices

OAuthSwiftASWebAuthenticationURLHandler adds ability to use ASWebAuthenticationSession with OAuthSwift while targeting iOS 12.0+ and does not require defining an extra URI scheme in the application's Info.plist or handling the URI scheme in the app delegate.

Installation:

Add this repository to Xcode using SPM.

Sample usage:

oauthSwift.authorizeURLHandler = ASWebAuthenticationSessionURLHandler(
  callbackUrlScheme: "scheme",
  presentationAnchor: view.window
)

For more details of how to use authorizeURLHandler, see the docs in OAuthSwift