Retrieve Identity Verification Status

Retrieving a User's Identity Verification Status

Overview

The getVerificationStatus method in the b.well SDK is designed to fetch the identity assurance level 2 (IAL2) verification status for the user. This function is key for understanding the identity verification status for use in downstream features like network record location and individual access services.

Method Signature

suspend fun getVerificationStatus(): BWellResult.SingleResource<VerificationStatus>
  • BwellResult.SingleResource<VerificationStatus>: Returns a VerificationStatus object that is a single VerificationResult FHIR resource

Sample Code

suspend fun getVerificationStatus(): Flow<BWellResult<VerificationStatus>> = flow {
        val verificationStatus = BWellSdk.user.getVerificationStatus()
        emit(verificationStatus)
    }

The VerificationStatus response includes the following key data fields:

  • status represents the validation status of the target, which can be one of the following values:

    ValueCodeComments
    attestedattested
    validatedvalidatedThis is the value for users with successful IAL2 verification
    in processin-process
    requires revalidationreq-revalid
    validation failedval-fail
    revalidation failedreval-fail
  • validationProcesscontains the reference to IAL2 Identity Verification as the verification status type