@golemio/energetics 1.2.12-dev.1210136153 → 1.2.12-dev.1210260890
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.
|
@@ -28,7 +28,7 @@ class UnimonitorCemApiHelper {
|
|
|
28
28
|
this.createSession = () => __awaiter(this, void 0, void 0, function* () {
|
|
29
29
|
var _a;
|
|
30
30
|
try {
|
|
31
|
-
const {
|
|
31
|
+
const { authcookiename, user, pass } = this.config;
|
|
32
32
|
const params = new URLSearchParams({
|
|
33
33
|
id: UnimonitorCemApiHelper.resourceType.UserLogin,
|
|
34
34
|
pass,
|
|
@@ -40,7 +40,7 @@ class UnimonitorCemApiHelper {
|
|
|
40
40
|
};
|
|
41
41
|
const { headers } = yield axios_1.default.get(axiosUrl, axiosConfig);
|
|
42
42
|
const cookieHeader = (_a = headers["set-cookie"]) === null || _a === void 0 ? void 0 : _a[0];
|
|
43
|
-
return UnimonitorCemApiHelper.processAndFilterAuthCookie(cookieHeader,
|
|
43
|
+
return UnimonitorCemApiHelper.processAndFilterAuthCookie(cookieHeader, authcookiename);
|
|
44
44
|
}
|
|
45
45
|
catch (err) {
|
|
46
46
|
throw new golemio_errors_1.GeneralError("Cannot retrieve Unimonitor CEM API authorization token", UnimonitorCemApiHelper.name, err);
|