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.
TadSigningResult is the value delivered to the completion closure of TadSigningViewController when an operation finishes, whether successfully or not. It has two cases: .success with the JWT and request identifier, and .failure with a typed error code and a human-readable message.
Enum declaration
Cases
.success(jwt: String, requestId: String)
The operation completed without error.
An ES512-signed JWT issued by the TAD signing backend. This string is populated only when the operation was initiated with
.sign mode. For .register mode, this field is an empty string "" — not nil. Forward this value to your backend to verify the signing operation.A unique identifier assigned by the backend for this specific signing or registration request. Populated for both
.register and .sign modes. Store or log this value for auditing and support purposes..failure(code: TadSigningErrorCode, message: String)
The operation failed before producing a result.
A typed error code indicating the category of failure. Access the string representation using
.rawValue — for example, code.rawValue produces a String suitable for logging or display.A human-readable description of the error. Suitable for display in debug logs; review before surfacing directly to end users.
Handling results
Use aswitch statement to handle both cases. The following example is from the demo app’s ContentView.swift:
TadSigningErrorCode is a RawRepresentable enum with a String raw value. Use code.rawValue to obtain the error code string for logging, analytics, or display.