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 =
|
|
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) {
|
package/package.json
CHANGED
package/src/OkCollect/app.json
CHANGED