@overmap-ai/core 1.0.60-sdk-refactor.12 → 1.0.60-sdk-refactor.14
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.
|
@@ -15524,8 +15524,9 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
15524
15524
|
return secondsUntilExpiry < EXPIRING_SOON_THRESHOLD;
|
|
15525
15525
|
}
|
|
15526
15526
|
getAuthHeader() {
|
|
15527
|
-
const
|
|
15528
|
-
|
|
15527
|
+
const accessToken = this.getAccessToken();
|
|
15528
|
+
console.debug("getAuthHeader", accessToken);
|
|
15529
|
+
return `Bearer ${accessToken}`;
|
|
15529
15530
|
}
|
|
15530
15531
|
async prepareAuth() {
|
|
15531
15532
|
if (!this.tokenIsExpiringSoon())
|
|
@@ -15564,19 +15565,14 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
15564
15565
|
});
|
|
15565
15566
|
}
|
|
15566
15567
|
}
|
|
15567
|
-
|
|
15568
|
-
* Attempts to log into Hemora using given credentials
|
|
15569
|
-
* @param {string} username
|
|
15570
|
-
* @param {string} password
|
|
15571
|
-
*/
|
|
15572
|
-
async initAuth(username, password) {
|
|
15568
|
+
async initAuth(payload) {
|
|
15573
15569
|
const uuid$1 = uuid.v4();
|
|
15574
15570
|
const promise = this.enqueueRequest({
|
|
15575
15571
|
uuid: uuid$1,
|
|
15576
15572
|
description: "Get token pair",
|
|
15577
15573
|
method: HttpMethod.POST,
|
|
15578
15574
|
url: this.initTokensUrl,
|
|
15579
|
-
payload
|
|
15575
|
+
payload,
|
|
15580
15576
|
isAuthNeeded: false,
|
|
15581
15577
|
checkAuth: false,
|
|
15582
15578
|
blockers: [],
|