VerifyMe Liveness Widget
VerifyMe has a smooth widget which helps you detect biometric spoofing attacks where a replica or imitation is presented to bypass the required identification and authentication steps
How to Generate Widget
Using the VerifyMe CDN-hosted javascript client library, you can install the Liveness widget into your application. You only have to add the script tag to your html document and insert basic configuration parameters and you'll be good to go.
Step 1: Add the Client Javascript Library
Include the script tag just before the end of the closing body tag of your desired html page where you wish to perform the liveness verification.
Step 2: Configure the Javascript Client Library
At this point, you can now create a Liveness widget object by passing in an object containing public key, product code and other fields containing the verification details.
key (string, required)
This is the VerifyMe public key, you can find this on the dashboard
widgetType(string, required)
The widgetType
property is to signify the widget you're interested in consuming: liveness verification widget (LIVENESS) or express verification (XPRESS). In essence, the property's value could either be LIVENESS OR XPRESS.
productCode (string, required)
This code is uniquely tied to the product created on your account. Kindly reach out to our customer service team to guide you through product creation. PS: It is important to note that you can have multiple products linked to your account.
verification details
These are other details that are required for the liveness check verification:
lastname
, firstname
, phone
, identityType
, and identityNumber
callback (function, required)
This callback takes one argument, this is called when your user has completed the liveness verification process.
Param
Description
lastname
lastname of the applicant
required
firstname
firstname of the applicant
required
phone
phone no of the applicant
optional
identityType
identity Type (BVN, NIN or FRSC)
required
identityNumber
identity Number
required
reference
unique reference
required
widgetType
LIVENESS or XPRESS
required
productCode
your verifyMe Product code
required
Step 3: Handle a Successful Liveness Verification
On successful verification, the callback function that you supplied is called by the client library with an object as a parameter. The object contains a status field with a success value
Refer to the Requery Liveness Verification section of this documentation. While making this api call, to protect your token key it is advised to make the call from a backend server.
Callback response data
Liveness Widget Example Script:
Last updated