@blusalt-sdk/react-native-blusalt-liveness
v0.1.0
Published
Liveness SDK for Android and IOS
Downloads
3
Readme
react-native-blusalt-liveness
Liveness SDK for Android and IOS
Installation
npm install react-native-blusalt-liveness
Android Setup
#Create a github.properties file in the root folder of android. Path should be like below: E.g. "myReactApp/android/github.properties"
# Add the following in github.properties:
USERNAME_GITHUB=MyUsernameOnGithub
TOKEN_GITHUB=TokenFromGithubClassicToken
Usage
import { startFacialComparisonSDK, startLivenessDetectionOnlySDK, LivenessType } from 'react-native-blusalt-liveness';
// ...
const clientId="";
const appName="";
const apiKey="";
const isDev: boolean = false;
startFacialComparisonSDK(clientId, appName, apiKey, isDev, imageBase64, LivenessType.motional, (responseJson)=>{
console.log(responseJson);
});
startLivenessDetectionOnlySDK(clientId, appName, apiKey, isDev, LivenessType.still, (responseJson)=>{
console.log(responseJson);
});
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library