Client interface for accessing Secure ID Verification service.

interface SudoSecureIdVerificationClient {
    captureAndVerifyIdentityDocument(idDocumentInfo): Promise<VerifiedIdentity>;
    checkIdentityVerification(queryOption?): Promise<VerifiedIdentity>;
    isFaceImageRequired(queryOption?): Promise<boolean>;
    listSupportedCountries(queryOption?): Promise<string[]>;
    reset(): Promise<void>;
    verifyIdentity(pii): Promise<VerifiedIdentity>;
    verifyIdentityDocument(idDocumentInfo): Promise<VerifiedIdentity>;
}

Implemented by

Methods

  • Queries the current identity verification status for the signed in user.

    Parameters

    • Optional queryOption: QueryOption

      Control for using local cache or make a network call

    Returns Promise<VerifiedIdentity>

    Verified identity results.

    Throws

    NotSignedInError

    Throws

    ServiceError

    Throws

    UnknownGraphQLError

    Throws

    FatalError

  • Retrieves whether face images must be provided as part of ID document verification.

    Parameters

    Returns Promise<boolean>

    Boolean

    Throws

    NotSignedInError

    Throws

    UnknownGraphQLError

    Throws

    ServiceError

    Throws

    FatalError

  • Retrieves the list of countries for which secure ID verification is supported in the environment.

    Parameters

    • Optional queryOption: QueryOption

      Control for using local cache or make a network call

    Returns Promise<string[]>

    List of ISO 3166-1 alpha-2 country codes.

    Throws

    NotSignedInError

    Throws

    UnknownGraphQLError

    Throws

    ServiceError

    Throws

    FatalError

  • Resets internal state and clear any cached data.

    Returns Promise<void>