ACMSocialAuth is a social authentication library that help developers to make social auth easily.
Via Cocoapods
pod 'ACMSocialAuth'
Via SPM, add new package, search url below
https://github.com/AppcentMobile/ACMSocialAuth
- Add app delegate helper methods
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
ACMSocialAuth.shared.application(with: .facebook, application: application, didFinishLaunchingWithOptions: launchOptions)
return true
}
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
ACMSocialAuth.shared.application(with: .google, app: app, open: url, options: options)
return true
}
- Call social authorization requests with supported providers [Apple, Facebook, Google] and state [login, logout]
ACMSocialAuth.shared.login(with: .google, state: .login) { model in
print(model)
} onError: { error in
print(error)
}
- Apache License 2.0 (LICENCE-Apache-2.0 or https://opensource.org/license/apache-2-0/)