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 aVerificationStatusobject 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:
-
statusrepresents the validation status of the target, which can be one of the following values:Value Code Comments attested attested validated validated This is the value for users with successful IAL2 verification in process in-process requires revalidation req-revalid validation failed val-fail revalidation failed reval-fail -
validationProcesscontains the reference to IAL2 Identity Verification as the verification status type
Updated about 2 months ago
