Each Sudo Platform environment is configured to support Secure ID Verification of identities from a specific set of countries. To get a list of supported countries, use the listSupportedCountries() method. The results are ISO 3166-1 alpha-2 codes, e.g. US for the United States.
do {let countries =tryawait identityVerificationClient.listSupportedCountries()} catchleterror {// 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 {// countries: list of strings containing the country codesval countries = identityVerificationClient.listSupportedCountries() } catch (e: SudoIdentityVerificationException) {// Handle errors. }}