This Berbix Vue.js library provides simple interfaces to interact with the Berbix Verify flow.
npm install berbix-vue
<template>
<div id="app">
<BerbixVerify
clientToken="your_client_token"
@complete="handleComplete"
/>
</div>
</template>
<script>
import BerbixVerify from 'berbix-vue';
export default {
name: 'app',
components: {
BerbixVerify
},
methods: {
handleComplete(event) {
// send event.value to backend to fetch user verification data
},
}
}
</script>
props: {
clientToken: String,
showInModal: Boolean,
showCloseModalButton: Boolean,
}
The following events are emitted from the component:
display
: fires when the component is loaded and ready to be displayedcomplete
: fires when the user has completed the verification flowstate-change
: fires when the user transitions between verificationserror
: fires when some error occurs in the flow
# Update the version in package.json
npm run build
npm publish