1.0.1 • Published 2 years ago

berbix-vue v1.0.1

Weekly downloads
74
License
MIT
Repository
github
Last release
2 years ago

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
3.0.1

2 years ago

3.0.0

2 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago