@overmap-ai/core 1.0.60-sdk-refactor.11 → 1.0.60-sdk-refactor.13
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.
|
@@ -15564,19 +15564,14 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
15564
15564
|
});
|
|
15565
15565
|
}
|
|
15566
15566
|
}
|
|
15567
|
-
|
|
15568
|
-
* Attempts to log into Hemora using given credentials
|
|
15569
|
-
* @param {string} username
|
|
15570
|
-
* @param {string} password
|
|
15571
|
-
*/
|
|
15572
|
-
async initAuth(username, password) {
|
|
15567
|
+
async initAuth(payload) {
|
|
15573
15568
|
const uuid$1 = uuid.v4();
|
|
15574
15569
|
const promise = this.enqueueRequest({
|
|
15575
15570
|
uuid: uuid$1,
|
|
15576
15571
|
description: "Get token pair",
|
|
15577
15572
|
method: HttpMethod.POST,
|
|
15578
15573
|
url: this.initTokensUrl,
|
|
15579
|
-
payload
|
|
15574
|
+
payload,
|
|
15580
15575
|
isAuthNeeded: false,
|
|
15581
15576
|
checkAuth: false,
|
|
15582
15577
|
blockers: [],
|
|
@@ -15596,8 +15591,6 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
15596
15591
|
return void 0;
|
|
15597
15592
|
}
|
|
15598
15593
|
this.setTokens(tokens);
|
|
15599
|
-
this.dispatch(setLoggedIn(true));
|
|
15600
|
-
this.dispatch({ type: "rehydrated/setRehydrated", payload: true });
|
|
15601
15594
|
});
|
|
15602
15595
|
return Promise.race([timeoutPromise, successPromise]);
|
|
15603
15596
|
}
|