- This is a react native component library created to perform authentication in inji app.
- The library uses FaceAuthProps which takes data as input and provides onValidationSuccess() function which can be called after validation is successful.
- It opens camera and captures face image. It compares face image with the input data and on successful match it triggers onValidationSuccess() function.
- To find match it uses AuthenticationService.ts file. (The matching function is mocked right now)
export interface FaceAuthProps {
data:string;
onValidationSuccess: () => void;
};
- Refer to the example folder to check usage of the library.
- Using npm -
npm install mosip-mobileid-sdk
- Using yarn -
yarn add mosip-mobileid-sdk
"1.0.9"
The sdk will be used by INJI app for biometric authentication. An SDK system that integrates with MOSIP should support the following operations.
Name | Description | Type |
---|---|---|
capturedImage | The image that is captured by the sdk camera | string |
vcImage | The image present inside credential that is passed to the sdk as input for authentication | string |
response | Status |
---|---|
true | Success |
false | Failed |
Signature
function authenticateFace(capturedImage: CameraCapturedPicture|null, vcImage:string): boolean {
// face matching algorithm logic here
return boolean;
}