The berbix-vue SDK provides a dedicated Vue.js component for integrating the Berbix identity verification flow into web applications. Berbix itself offers a fully automated and instant identity verification solution, leveraging biometric scans combined with data extraction from government-issued IDs (such as driver's licenses and passports) to quickly and accurately confirm user identities. The SDK simplifies the client-side integration of this complex process, handling the user interface and interactions necessary for the verification flow, which includes real-time coaching for optimal image capture and selfie submission. Currently at version 1.0.1, the package is designed to assist developers in building secure onboarding, age verification, and KYC (Know Your Customer) processes within Vue environments. Its core differentiators lie in its high accuracy, exceptionally low false acceptance rate (0.1%), and a rapid 2-second response time for verification results, aiming to optimize both security and user conversion. While the package specifies 'Vue 2.x release support', modern Vue development primarily targets Vue 3, necessitating careful consideration of the specific Vue version used for integration.
npm install berbix-vueVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to integrate the BerbixVerify component into a Vue 3 application using the Composition API. It shows how to pass a clientToken, handle completion and error events, and display the verification status. Remember to obtain `clientToken` securely from your backend.
For new projects, prefer Vue 3 and confirm SDK compatibility. If maintaining a Vue 2 project, ensure the SDK's Vue 2 support is actively maintained and consider the implications of Vue 2 EOL. Migration to Vue 3 would involve refactoring your application and potentially updating the SDK version.
Inform users about the mobile device requirement before they start the verification process. Provide clear instructions and options for seamlessly transitioning to a mobile device (e.g., QR code, email/SMS link).
Always fetch the `clientToken` from your secure backend via an authenticated API endpoint. The token should have a limited lifespan and be tied to the user session. Never hardcode it or embed it directly into static client-side bundles.
Stay informed about official announcements from Berbix/Socure regarding product roadmaps, API changes, and migration guides. Regularly check the package's GitHub repository and npm page for updates and deprecation notices.
Ensure you `import { BerbixVerify } from 'berbix-vue';` in your component's script section (especially with `<script setup>`) or globally register it using `app.component('BerbixVerify', BerbixVerify);` in your `main.ts`/`main.js`.Verify that your backend correctly generates and provides a fresh, valid `clientToken` for each user session. Ensure the token is passed correctly to the `:clientToken` prop of the `BerbixVerify` component. Check your Berbix dashboard for token validity and API key configurations.
Consult the official Berbix SDK documentation for the exact structure of the `complete` and `error` event payloads. Update your event handlers to safely access properties (e.g., `event?.status`) and ensure your `berbix-vue` package is up to date.