@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.
package/dist/overmap-core.js
CHANGED
|
@@ -15535,8 +15535,9 @@ class JWTService extends BaseAuthService {
|
|
|
15535
15535
|
return secondsUntilExpiry < EXPIRING_SOON_THRESHOLD;
|
|
15536
15536
|
}
|
|
15537
15537
|
getAuthHeader() {
|
|
15538
|
-
const
|
|
15539
|
-
|
|
15538
|
+
const accessToken = this.getAccessToken();
|
|
15539
|
+
console.debug("getAuthHeader", accessToken);
|
|
15540
|
+
return `Bearer ${accessToken}`;
|
|
15540
15541
|
}
|
|
15541
15542
|
async prepareAuth() {
|
|
15542
15543
|
if (!this.tokenIsExpiringSoon())
|
|
@@ -15575,19 +15576,14 @@ class JWTService extends BaseAuthService {
|
|
|
15575
15576
|
});
|
|
15576
15577
|
}
|
|
15577
15578
|
}
|
|
15578
|
-
|
|
15579
|
-
* Attempts to log into Hemora using given credentials
|
|
15580
|
-
* @param {string} username
|
|
15581
|
-
* @param {string} password
|
|
15582
|
-
*/
|
|
15583
|
-
async initAuth(username, password) {
|
|
15579
|
+
async initAuth(payload) {
|
|
15584
15580
|
const uuid = v4();
|
|
15585
15581
|
const promise = this.enqueueRequest({
|
|
15586
15582
|
uuid,
|
|
15587
15583
|
description: "Get token pair",
|
|
15588
15584
|
method: HttpMethod.POST,
|
|
15589
15585
|
url: this.initTokensUrl,
|
|
15590
|
-
payload
|
|
15586
|
+
payload,
|
|
15591
15587
|
isAuthNeeded: false,
|
|
15592
15588
|
checkAuth: false,
|
|
15593
15589
|
blockers: [],
|