DefaultSudoIdentityVerificationClient
public class DefaultSudoIdentityVerificationClient : SudoIdentityVerificationClient
Default implementation of SudoIdentityVerificationClient
.
-
Initializes a new
DefaultSudoIdentityVerificationClient
instance.Throws
SudoIdentityVerificationClientError
Declaration
Swift
convenience public init(sudoUserClient: SudoUserClient, logger: Logger? = nil) throws
Parameters
sudoUserClient
SudoUserClient
instance required to issue authentication tokens and perform cryptographic operations.logger
A logger to use for logging messages. If none provided then a default internal logger will be used.
-
Initializes a new
DefaultSudoIdentityVerificationClient
instance with the specified backend configuration.Throws
SudoIdentityVerificationClientError
Declaration
Swift
public init( config: [String: Any], sudoUserClient: SudoUserClient, logger: Logger? = nil, graphQLClient: SudoApiClient? = nil ) throws
Parameters
config
Configuration parameters for the client.
sudoUserClient
SudoUserClient
instance required to issue authentication tokens and perform cryptographic operations.logger
A logger to use for logging messages. If none provided then a default internal logger will be used.
graphQLClient
Optional GraphQL client to use. Mainly used for unit testing.
-
listSupportedCountries()
AsynchronousDeclaration
Swift
public func listSupportedCountries() async throws -> [String]
-
isFaceImageRequired()
AsynchronousDeclaration
Swift
public func isFaceImageRequired() async throws -> Bool
-
verifyIdentity(input:
Asynchronous) Declaration
Swift
public func verifyIdentity(input: VerifyIdentityInput) async throws -> VerifiedIdentity
-
verifyIdentityDocument(input:
Asynchronous) Declaration
Swift
public func verifyIdentityDocument(input: VerifyIdentityDocumentInput) async throws -> VerifiedIdentity
-
captureAndVerifyIdentityDocument(input:
Asynchronous) Declaration
Swift
public func captureAndVerifyIdentityDocument(input: VerifyIdentityDocumentInput) async throws -> VerifiedIdentity
-
checkIdentityVerification(option:
Asynchronous) Declaration
Swift
public func checkIdentityVerification(option: QueryOption) async throws -> VerifiedIdentity
-
Declaration
Swift
public func reset() throws