ws-process 0.3.50 → 0.3.52
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/index.js +5 -1
- package/package.json +2 -1
package/index.js
CHANGED
|
@@ -641,7 +641,11 @@ function asyncSend(msg) {
|
|
|
641
641
|
headers['bsg-support-system-external-id'] = user.pid;
|
|
642
642
|
// headers['bsg-support-partner-id'] = user.partnerID;
|
|
643
643
|
// headers['bsg-support-system-id'] = user.systemID;
|
|
644
|
-
|
|
644
|
+
if (tryit(() => msg.body.Idp) === 'google' && !user.systemID && !user.partnerID) {
|
|
645
|
+
headers['x-api-key'] = '5db1bf127d3fcc0cfdd8880cb5cbe6f9'; // means "initial login"
|
|
646
|
+
} else {
|
|
647
|
+
headers['x-api-key'] = [user.systemID, user.partnerID].join('@');
|
|
648
|
+
}
|
|
645
649
|
headers['request-datetime'] = cProcessItemRoot.requestTime;
|
|
646
650
|
headers.href = window.location.href;
|
|
647
651
|
|
package/package.json
CHANGED