Enrolment Flow
In order to use our SDK you need an authorization token. Please check our API "Authorisation" in this regard.
Add the following code at the start-up of your application to initialize the SDK:
import {
DocumentBuilder,
DocumentType,
EnrollmentBuilder,
UqudoIdSDK,
ReadingConfigurationBuilder
} from 'uqudosdk-react-native';
...
//On App startup
constructor(){
super()
new UqudoIdSDK().init();
}
...
Use the below method for setting the locale of the application:
...
new UqudoIdSDK().setLocale(<your locale eg. en, ar etc.>);
...To check if a document supports enrollment, reading and facial recognition you can use the below methods:
Below you can find an example on how to initiate the enrollment process for a passport enabling the reading through NFC and facial recognition:
In order to evaluate all the possible options please refer to section Enrolment Flow. The JS interface is the porting of the Kotlin implementation. You can find the JS implementation in uqudoBuilder/uqudo.js under the uqudoid module path.
If successful, the response is a JSON Web Signature (JWS). Please refer to section "SDK result" for further details.
In case of a failure, the callback returns the following object:
message
String
Yes
null
Description of the error if any
Add the following event to enable the tracing mechanism. Please refer to section Analytics for details.
Last updated
Was this helpful?