0.0.8 • Published 2 years ago

mosip-mobileid-sdk-test v0.0.8

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Mosip Mobileid sdk

  • 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.

USAGE

  • Using npm -
npm install mosip-mobileid-sdk
  • Using yarn -
yarn add mosip-mobileid-sdk

Latest stable version

"1.0.9"

API SPEC

The sdk will be used by INJI app for biometric authentication. An SDK system that integrates with MOSIP should support the following operations.

Parameters

NameDescriptionType
capturedImageThe image that is captured by the sdk camerastring
vcImageThe image present inside credential that is passed to the sdk as input for authenticationstring

Standard Return Codes(match or no match)

responseStatus
trueSuccess
falseFailed

FaceMatching

Signature

function authenticateFace(capturedImage: CameraCapturedPicture|null, vcImage:string): boolean {
    // face matching algorithm logic here
    return boolean;
}
0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago