ws-process 0.3.50 → 0.3.51

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.
Files changed (2) hide show
  1. package/index.js +5 -1
  2. package/package.json +1 -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
- headers['x-api-key'] = [user.systemID, user.partnerID].join('@');
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ws-process",
3
- "version": "0.3.50",
3
+ "version": "0.3.51",
4
4
  "description": "Process Management for Web Socket Client",
5
5
  "main": "index.js",
6
6
  "scripts": {