Skip to content
Berbix Vue.js SDK for rendering the Berbix Verify flow
JavaScript Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.babelrc
.gitignore
README.md
package-lock.json
package.json
release.sh
version

README.md

Berbix Vue.js SDK

This Berbix Vue.js library provides simple interfaces to interact with the Berbix Verify flow.

Installation

npm install berbix-vue

Usage

Basic usage

<template>
  <div id="app">
    <BerbixVerify
      clientId="your_client_id"
      templateKey="your_template_key"
      @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

props: {
  clientId: String,
  clientToken: String,
  templateKey: String,
  email: String,
  phone: String,
}

Events

The following events are emitted from the component:

  • display: fires when the component is loaded and ready to be displayed
  • complete: fires when the user has completed the verification flow
  • state-change: fires when the user transitions between verifications
  • error: fires when some error occurs in the flow

Publishing

# Update the version in package.json
npm run build
npm publish
You can’t perform that action at this time.