Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 771 Bytes

File metadata and controls

16 lines (12 loc) · 771 Bytes

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