1.6.0 • Published 4 years ago

npm-cordova-plugin-veriff v1.6.0

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
4 years ago

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