npm-cordova-plugin-veriff

Cordova plugin exposing Veriff SDK

Usage no npm install needed!

<script type="module">
  import npmCordovaPluginVeriff from 'https://cdn.skypack.dev/npm-cordova-plugin-veriff';
</script>

README

cordova-plugin-veriff

npm version

Cordova plugin exposing the Veriff SDK - Smart and scalable identity verification

Requeriments

  • Android 5.0 or newer
  • iOS version 11.0 or newer

Installation

Within your Cordova project:

$ cordova plugin add cordova-plugin-veriff

Usage

The plugin exposes the VERIFF JavaScript namespace wich cointains a Veriff end-to-end verification service.

To use this plugin:

In your ionic app:

  1. Declare a global var
declare var VERIFF;
  1. Create a session with your Veriff API KEY.

  2. Start the verification process:

sessionToken should be unique for each call. Check /sessions endpoint in the Veriff API documentation to learn how to generate one.

let sessionToken = "your Veriff session token"
this.platform.ready().then(() => {
  VERIFF.start(sessionToken).then(code => {
    // The promise returns the VeriffSDK verification result
  });
});

Building

Within root plugin path:

$ npm run build

$ npm run build

Bugs

Changelog

See CHANGELOG.md

Author

Carlos Santos Morales