@nstudio/nativescript-onfido
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

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

Versions

Current Tags

Version History

Package Sidebar

Install

npm i @nstudio/nativescript-onfido

Weekly Downloads

0

Version

4.0.0

License

Apache-2.0

Unpacked Size

70.9 kB

Total Files

18

Last publish

Collaborators

  • nativescript-bot
  • multishiv19
  • rigor789
  • alexziskind1
  • walkerrunpdx
  • bradmartin
  • davecoffin
  • triniwiz