User Consent for Secure ID Verification
Determine whether User Consent is Required
do {
let consentRequired = try await identityVerificationClient.isConsentRequiredForVerification()
} catch {
// Handle error. An error may be thrown if the backend is unable to perform
// requested operation due to availability or security issues.
// An error might be also be thrown for unrecoverable circumstances arising
// from programmatic error or configuration error. For example, if the keychain
// access entitlement is not set up correctly or basic system resources are
// unavailable.
}CoroutineScope(Dispatchers.IO).launch {
try {
val consentRequired = identityVerificationClient.isConsentRequiredForVerification()
} catch (e: SudoIdentityVerificationException) {
// Handle errors.
}
}try {
const consentRequired = await identityVerificationClient.isConsentRequiredForVerification()
}
catch (err) {
// Handle errors
}Determine User Consent Status
Collect and Provide User Consent
Withdraw User Consent
Last updated