Skip to content

berbix/berbix-vue

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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
      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

props: {
  clientToken: String,
  showInModal: Boolean,
  showCloseModalButton: Boolean,
}

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

About

Berbix Vue.js SDK for rendering the Berbix Verify flow

Resources

License

Stars

Watchers

Forks

Packages

No packages published