Documentation Index
Fetch the complete documentation index at: https://mintlify.com/signing-sdk/face-auth-ios/llms.txt
Use this file to discover all available pages before exploring further.
TadSigningViewController is a UIViewController subclass you present modally to run either passkey registration or authentication. It handles the full flow — face liveness check, WebAuthn credential creation or assertion, and JWT signing — then calls your completion handler on the main thread when the operation completes or fails.
Class declaration
Initializer
Parameters
SDK configuration object containing the API endpoint, ES512 public key, WebAuthn relying party ID, and service name. See TadSigningConfig.
Unique identifier for the bank user. This value ties the WebAuthn passkey to a specific user account and must be consistent across registration and subsequent sign operations.
Additional data to pass to the backend. Pass an empty dictionary
[:] when no extra data is needed. A common use case is forwarding a one-time password: ["otp": "12345"].Controls whether the controller performs passkey creation (
.register) or authentication and JWT signing (.sign). See TadSigningMode.Called on the main thread when the operation finishes. Receives a TadSigningResult value of either
.success or .failure.Presenting the controller
Always presentTadSigningViewController modally using present(_:animated:). Do not push it onto a navigation stack.
Threading
Thecompletion closure is always called on the main thread, so you can safely update UI directly inside it without dispatching to DispatchQueue.main.
Usage example
The following example is taken from the demo app’sContentView.swift. It builds the dto from an optional OTP field, creates the view controller, and presents it from the topmost UIViewController in the current scene.