Skip to content

old-pj-aias/aias-app-ios-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aias iOS sdk

iOS SDK for aias auth system.

Usage

(see sample Xcode project in /exsample) You need set URL scheme on you app

  • to configure aias sdk Put this code in application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) on AppDelegate

    Aias.shared.configure(scheme: "your-scheme")

    Put this code in application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) on AppDelegate

    Aias.shared.loadScheme(url: url)
  • sign in with aias Put this code when you want start auth process

    Aias.shared.auth()
  • logout Put this code when you want logout user

    Aias.shared.logout {}
  • data json this code returns json that caught aias format

    Aias.shared.encodeData(dataString: "data", token: "random-token-from-server")
  • status returns if user exsists

    Aias.shared.isLoggingIn