@como/como-client 0.7.70 → 0.7.72
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.
- package/lib/como.js +2 -2
- package/package.json +1 -1
- package/src/como.js +2 -2
package/lib/como.js
CHANGED
|
@@ -358,7 +358,7 @@ var Como = function () {
|
|
|
358
358
|
this.comoData.token = credentials.accessToken;
|
|
359
359
|
this.comoData.refreshToken = credentials.refreshToken;
|
|
360
360
|
this.comoData.expiresIn = credentials.expiresIn;
|
|
361
|
-
this.comoData.reCaptchaSiteKey = credentials.
|
|
361
|
+
this.comoData.reCaptchaSiteKey = credentials.config ? credentials.config.recaptchaSiteKey : null;
|
|
362
362
|
}
|
|
363
363
|
}, {
|
|
364
364
|
key: 'getExternalUrlByID',
|
|
@@ -1625,7 +1625,7 @@ var Como = function () {
|
|
|
1625
1625
|
}, {
|
|
1626
1626
|
key: 'getRecaptchaConfig',
|
|
1627
1627
|
value: function getRecaptchaConfig() {
|
|
1628
|
-
return { reCaptchaSiteKey: this.comoData.reCaptchaSiteKey, baseUrl: this.comoData.gateway };
|
|
1628
|
+
return { reCaptchaSiteKey: this.comoData.reCaptchaSiteKey, baseUrl: this.comoData.env_params.gateway };
|
|
1629
1629
|
}
|
|
1630
1630
|
|
|
1631
1631
|
/**
|
package/package.json
CHANGED
package/src/como.js
CHANGED
|
@@ -171,7 +171,7 @@ class Como {
|
|
|
171
171
|
this.comoData.token = credentials.accessToken;
|
|
172
172
|
this.comoData.refreshToken = credentials.refreshToken;
|
|
173
173
|
this.comoData.expiresIn = credentials.expiresIn;
|
|
174
|
-
this.comoData.reCaptchaSiteKey = credentials.
|
|
174
|
+
this.comoData.reCaptchaSiteKey = credentials.config? credentials.config.recaptchaSiteKey : null;
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
getExternalUrlByID(itemID, gpsData, assetID, accessibilityData) {
|
|
@@ -682,7 +682,7 @@ class Como {
|
|
|
682
682
|
/**
|
|
683
683
|
* Return service recaptch config
|
|
684
684
|
*/
|
|
685
|
-
getRecaptchaConfig() { return {reCaptchaSiteKey: this.comoData.reCaptchaSiteKey, baseUrl: this.comoData.gateway } }
|
|
685
|
+
getRecaptchaConfig() { return {reCaptchaSiteKey: this.comoData.reCaptchaSiteKey, baseUrl: this.comoData.env_params.gateway } }
|
|
686
686
|
|
|
687
687
|
/**
|
|
688
688
|
* Returns the location specific registration web url
|