8000 GitHub - ChipperCash/react-native-facetec: facetec sdk react-native
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ChipperCash/react-native-facetec

 
 

Repository files navigation

react-native-facetec

facetec module bridge

Installation

npm install react-native-facetec

Usage

import {
  init,
  enroll,
  authenticateUser,
  livenessCheck,
} from 'react-native-facetec';

init(
    () => {
    console.log('init success');
    },
    () => console.log('init fail')
);

enroll(
    'USER_ID',
    (resp) => {
        //JSON.parse(resp)
        console.log('enroll ' + resp);
    },
    (error) => console.log('enroll ' + error)
);

livenessCheck(
    (resp) => {
        console.log('livenessCheck ' + resp);
    },
    (error) => console.log('livenessCheck ' + error)
)

authenticateUser(
    'USER_ID',
    (resp) => {
        console.log('authenticateUser ' + resp);
    },
    (error) => console.log('authenticateUser ' + error)
)

CheckId(
    'USER_ID',
    (resp) => {
        console.log('CheckId ' + resp);
        let data = JSON.parse(params);
        data.FrontImagesCompressedBase64 // front id image data:image/jpeg;base64
        data.BackImagesCompressedBase64 // back id image data:image/jpeg;base64
    },
    (error) => console.log('CheckId ' + error)
)

config

minSdkVersion = 19

//Add your SDK key to ZoomGlobalState.java
public static String DeviceLicenseKeyIdentifier = "YOUR_API_KEY";

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

TODO

IOS

About

facetec sdk react-native

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Java 84.9%
  • JavaScript 6.5%
  • Ruby 4.3%
  • Objective-C 3.9%
  • TypeScript 0.2%
  • C 0.1%
  • Swift 0.1%
0