Skip to content

ACMSocialAuth helps developers to make social logins easily

License

Notifications You must be signed in to change notification settings

AppcentMobile/ACMSocialAuth

ACMSocialAuth

ACMSocialAuth is a social authentication library that help developers to make social auth easily.

Install

Via Cocoapods

pod 'ACMSocialAuth'

Via SPM, add new package, search url below

https://github.com/AppcentMobile/ACMSocialAuth

Basic Usage

  • Add app delegate helper methods

Facebook

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
  ACMSocialAuth.shared.application(with: .facebook, application: application, didFinishLaunchingWithOptions: launchOptions)
  return true
}

Google

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)
}

License

About

ACMSocialAuth helps developers to make social logins easily

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published