@nstudio/nativescript-onfido
by nStudio | v2.0.0
Onfido SDK for NativeScript
npm i --save @nstudio/nativescript-onfido

Onfido SDK for NativeScript

npm install @nstudio/nativescript-onfido

Usage

import { OnfidoUtils, Onfido, OnfidoCaptureType } from '@nstudio/nativescript-onfido';

OnfidoUtils.init('<token>', '<app id>');

Onfido.debugMode = true;
Onfido.start({
sdkToken: token,
flowSteps: {
welcome: true,
captureDocument: {},
captureFace: {
type: OnfidoCaptureType.PHOTO,
},
},
}).then(data => {
// onfido data
}).catch((error) => {
// onfido data
});

License

Apache License Version 2.0