startClient
The first thing that needs to be done when the app starts is to initizialize the OneWelcome React Native SDK. This will perform a few checks and report an error in case of any problems.
startClient(sdkConfig?: Config): Promise<void>
| Property | Type | Description | 
|---|---|---|
| sdkConfig | Config | Config used for initalizing the sdk | 
Example
const config: Types.Config = {
  enableFingerprint: true,
  securityControllerClassName:
    'com.onegini.mobile.rnexampleapp.SecurityController',
  enableMobileAuthenticationOtp: true,
  customProviders: [
    {id: '2-way-otp-api', isTwoStep: true},
    {id: 'qr_registration', isTwoStep: false},
  ],
  configModelClassName: null,
};
OneWelcomeSdk.startClient(config)
    .then(() => console.log('Start succeed'))
    .catch(error => console.log('Start failed: ', error.message))