iOS SDK for aias auth system.
(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]?)
onAppDelegate
Aias.shared.configure(scheme: "your-scheme")
Put this code in
application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any)
onAppDelegate
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