README
cordova-plugin-veriff
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:
- Declare a global var
declare var VERIFF;
Create a session with your Veriff API KEY.
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