react-native-okhi 1.2.28-beta.2 → 1.2.28-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -162,7 +162,10 @@ public class OkhiModule extends ReactContextBaseJavaModule {
162
162
  String branchId = config.getJSONObject("credentials").getString("branchId");
163
163
  String clientKey = config.getJSONObject("credentials").getString("clientKey");
164
164
  String mode = config.getJSONObject("context").getString("mode");
165
- JSONObject configUser = config.getJSONObject("user");
165
+ JSONObject configUser = null;
166
+ if (config.has("user")) {
167
+ configUser = config.getJSONObject("user");
168
+ }
166
169
 
167
170
  auth = new OkHiAuth(getReactApplicationContext(), branchId, clientKey, mode);
168
171
  if (getCurrentActivity() != null && getCurrentActivity().getApplicationContext() != null) {
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "okhiWebReactNative",
3
- "version": "1.2.27"
3
+ "version": "1.2.28-beta.3"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "okhiWebReactNative",
3
- "version": "1.2.27"
3
+ "version": "1.2.28-beta.3"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-okhi",
3
- "version": "1.2.28-beta.2",
3
+ "version": "1.2.28-beta.3",
4
4
  "description": "The OkHi React Native library enables you to collect and verify addresses from your users",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "okhiWebReactNative",
3
- "version": "1.2.27"
3
+ "version": "1.2.28-beta.3"
4
4
  }