authscape 1.0.316 → 1.0.317
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 +6 -5
- package/package.json +1 -1
- package/src/services/setupOEMProps.js +2 -5
package/index.js
CHANGED
|
@@ -4289,14 +4289,15 @@ function _WhiteLabelPageModule() {
|
|
|
4289
4289
|
host = "https://" + host;
|
|
4290
4290
|
}
|
|
4291
4291
|
_context.next = 4;
|
|
4292
|
-
return
|
|
4292
|
+
return fetch(process.env.apiUri + "/api/WhiteLabel/GetCompanyIdFromDomain?domain=" + host);
|
|
4293
4293
|
case 4:
|
|
4294
4294
|
response = _context.sent;
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
}
|
|
4298
|
-
return _context.abrupt("return", data);
|
|
4295
|
+
_context.next = 7;
|
|
4296
|
+
return response.json();
|
|
4299
4297
|
case 7:
|
|
4298
|
+
data.oemCompanyId = _context.sent;
|
|
4299
|
+
return _context.abrupt("return", data);
|
|
4300
|
+
case 9:
|
|
4300
4301
|
case "end":
|
|
4301
4302
|
return _context.stop();
|
|
4302
4303
|
}
|
package/package.json
CHANGED
|
@@ -12,11 +12,8 @@ export async function WhiteLabelPageModule(host) {
|
|
|
12
12
|
host = "https://" + host;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
const response = await
|
|
16
|
-
|
|
17
|
-
{
|
|
18
|
-
data.oemCompanyId = response.data;
|
|
19
|
-
}
|
|
15
|
+
const response = await fetch(process.env.apiUri + "/api/WhiteLabel/GetCompanyIdFromDomain?domain=" + host);
|
|
16
|
+
data.oemCompanyId = await response.json();
|
|
20
17
|
|
|
21
18
|
return data;
|
|
22
19
|
}
|