Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 698 Bytes

File metadata and controls

36 lines (28 loc) · 698 Bytes

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