CSantosM / cordova-plugin-veriff

Cordova plugin exposing the VeriffSDK- Smart and scalable identity verification
Apache License 2.0
3 stars 2 forks source link
android cordova cordova-android cordova-ios cordova-plugin cordova-plugin-veriff identification identity identity-verification ionic ios veriff verification

cordova-plugin-veriff

npm version

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

Requeriments

Installation

Within your Cordova project:

$ cordova plugin add cordova-plugin-veriff

Usage

The plugin exposes the VERIFF JavaScript namespace which 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 verification with your Veriff API KEY.

  2. Start the verification process:

We will need the verification sessionUrl to start the Veriff process

const sessionURL = session.verification.url;
const configuration = {
  themeColor: '#0F3C32'
};

VERIFF.start(sessionURL, configuration).then((result: { message: string, status: string }) => {
  // The promise returns the VeriffSDK verification result
  console.log("Result: ", result);
}).catch(err => console.error(err));

Building

Within root plugin path:

$ npm run build

Bugs

Changelog

See CHANGELOG.md

Author

Carlos Santos Morales

If you liked the project, consider buy me a coffee :) Buy Me A Coffee