Overview
Reverification is a feature that allows users who have already gone through the Vouched process to quickly re-verify themselves.
Note: Reverification is only supported in the JS Plugin with the avant theme currently.
When a user completes a reverification job, the selfie on the new job gets compared to the user's original job's selfie or ID photo. This allows you to verify that the current user is the same person that was verified previously.
Initiating a reverification job
To initiate a reverification job:
- Perform the initial verification job and capture the job id
- Submit a new job using the JS Plugin
- Set
typetoreverify - Specify
jobIdfrom the source job in reverificationParameters - Set
themetoavant - Define
onReverifyto redirect to the next page once user is reverified.
Quick start code
Here's an example of a JS Plugin configured with reverification enabled:
<head> <!-- utf-8 is required for JS Plugin default fonts --> <meta charset="utf-8" /> <script src="https://static.vouched.id/widget/vouched-2.0.0.js"></script> <script type='text/javascript'> (function() { var vouched = Vouched({ // specify reverification job type: 'reverify', reverificationParameters: { // reference the source job by its id jobId: 'gmYDEJWB2' }, // theme must be 'avant' for reverification theme: { name: 'avant', }, appId: "<PUBLIC_KEY>", // your webhook for POST verification processing callbackURL: 'https://website.com/webhook', // mobile handoff crossDevice: true, crossDeviceQRCode: true, crossDeviceSMS: true, onInit: ({token, job}) => { console.log('initialization'); }, // called when the reverification is completed. onReverify: (job) => { // token used to query jobs console.log("Reverification complete", { token: job.token }); // Redirect to the next page based on the job success if( job.result.success){ window.location.replace("https://website.com/success/"); }else{ window.location.replace("https://website.com/failed/"); } }, }); vouched.mount("#vouched-element"); })(); </script> </head> <body> <div id='vouched-element' style="height: 100%"/> </body>
Comments
0 comments
Please sign in to leave a comment.