The paspoid/ios repository is reserved but not published yet. The snippet below shows the intended shape of the public API and will be replaced with full reference docs once the SDK ships.
// Package.swift
.package(url: "https://github.com/paspoid/ios", from: "1.0.0")
// Authenticate
PaspoID.shared.authenticate(from: viewController) { result in
switch result {
case .success(let token):
break // user authenticated
case .failure(let error):
break // handle error
}
}
This mirrors the Android SDK: your app calls authenticate, gets back a one-time token/authorization code, and your server exchanges it with Paspo ID for the user's verified data. See How it works for the full flow, which is platform-agnostic.
Want to be notified when this ships, or need iOS support sooner? See Support.