HumanIDSDK 2.0.0

HumanIDSDK 2.0.0

Maintained by humanID, Human Internet.



 
Depends on:
Swinject= 2.8.1
RxAlamofire= 5.7.1
RxCocoa= 5.1.3
RxSwift= 5.1.3
 

  • By
  • Human Internet

Version License Platform

humanID iOS SDK

General DocumentationWikiIntegrationContributingGalleryFAQ

Meet humanID - An anonymous online identity, enabling platforms to offer the speed and comfort of social logins, while guaranteeing absolute privacy and protecting our communities by permanently blocking bots, spams and trolls

Requirements

  • Xcode 13.0+
  • Swift 5.0+
  • iOS 13.0+
  • Clean Swift VIP architecture

Built with

  • Swinject - Dependency injection framework for Swift with iOS/macOS/Linux
  • RxAlamofire - RxSwift wrapper around the elegant HTTP networking in Swift Alamofire
  • RxSwift - Reactive Programming in Swift

Installation

HumanIDSDK is available through CocoaPods
To install it, simply add the following line to your Podfile:

pod 'HumanIDSDK'

Get the credentials access

Get the clientID and clientSecret by dropping us an email [email protected]

How do I use iOS SDK

Add these codes into your ViewController class, we recommend you wrap this in a function that handles the login button

import HumanIDSDK

final class YourViewController: UIViewController {

  @IBAction func didLoginAction(_ sender: Any) {
     HumanIDSDK.shared.webLogin(with: "YOUR_CLIENT_ID", and: "YOUR_CLIENT_SECRET")
  }
}

extension YourViewController: WebLoginDelegate {

  func login(with token: String) {
     // TODO: - You can persist our token here
  }
}

(Optional) You can also pass the optional parameters to support default language and/or priority countries selection using the following step

import HumanIDSDK

final class YourViewController: UIViewController {

  @IBAction func didLoginAction(_ sender: Any) {
     HumanIDSDK.shared.webLogin(with: "YOUR_CLIENT_ID", and: "YOUR_CLIENT_SECRET", language: SupportedLanguage.ENGLISH_US, countries: [CountryCode.UNITED_STATES])
  }
}

You are set!

Now you can integrate your iOS app to humanID
See the full sample here to learn more

Warning! To run the example project, clone the repo and run pod install from the Example directory first

License

Copyright 2022 Human Internet
Licensed under the GNU General Public License v3.0 (LICENSE)