Swiftpack.co - tru-ID/tru-sdk-ios as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by tru-ID.
tru-ID/tru-sdk-ios kmm
tru.ID iOS SDK that enables an HTTP request to be made over cellular even when on WiFi
⭐️ 2
🕓 7 weeks ago
iOS macOS
.package(url: "https://github.com/tru-ID/tru-sdk-ios.git", from: "kmm")

tru-sdk-ios

iOS SDK for tru.ID: Blazingly fast phone verification. Exposes APIs for instant, invisible strong authentication.

Swift Version License

Installation

Using Package Dependencies

import PackageDescription

let package = Package(
    dependencies: [
        .Package(url: "https://github.com/tru-ID/tru-sdk-ios.git, majorVersion: 0, minor: 0)
    ]
)

Using cocoapods

  pod 'tru-sdk-ios', '~> x.y.z'

Compatibility

Minimum iOS: TruSDK is compatible with iOS 12+

Usage example

import TruSDK

let tru: TruSDK = TruSDK()

//check if device is eligible
tru.isReachable { result in
...           
}

//create a PhoneCheck with your backend 
//in order to get a checkURL
...

//trigger the check URL from the device
tru.checkUrlWithResponseBody(url: url) { error, body in 
...
}

tru.checkWithTrace(url: url) { error, trace in
...
}

//retrieve PhoneCheck result from backend

Meta

Distributed under the MIT license. See LICENSE for more information.

https://github.com/tru-ID

GitHub

link
Stars: 2
Last commit: 4 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics