requestId generated by the Create API, performs the authentication, and reports progress through callbacks. Your backend confirms the final result via the Status Check API.
Requirements
Step 1: Add SDK dependency
The SDK can be installed via CocoaPods or Swift Package Manager. Find the latest version of the SDK here.Step 2: Start authentication with the requestId
Pass therequestId returned by the Create API to start():
Start polling the Status Check API from your backend immediately after calling
start(). The SDK callback and the server status run in parallel.Step 3: Handle callbacks
Callback reference
The SDK works in two steps — initialization andstart() — and each step has its own set of callbacks.
Step 1: Initialization callbacks
Emitted when the SDK initializes.Step 2: Start callbacks
Emitted after you invokestart() to begin authentication.
For the
errorCode / statusCode values surfaced in SDK callbacks, see SDK Error Codes.Next step
Status Check API
Confirm the authoritative auth status from your server.