@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.
package/dist/overmap-core.js
CHANGED
|
@@ -15575,19 +15575,14 @@ class JWTService extends BaseAuthService {
|
|
|
15575
15575
|
});
|
|
15576
15576
|
}
|
|
15577
15577
|
}
|
|
15578
|
-
|
|
15579
|
-
* Attempts to log into Hemora using given credentials
|
|
15580
|
-
* @param {string} username
|
|
15581
|
-
* @param {string} password
|
|
15582
|
-
*/
|
|
15583
|
-
async initAuth(username, password) {
|
|
15578
|
+
async initAuth(payload) {
|
|
15584
15579
|
const uuid = v4();
|
|
15585
15580
|
const promise = this.enqueueRequest({
|
|
15586
15581
|
uuid,
|
|
15587
15582
|
description: "Get token pair",
|
|
15588
15583
|
method: HttpMethod.POST,
|
|
15589
15584
|
url: this.initTokensUrl,
|
|
15590
|
-
payload
|
|
15585
|
+
payload,
|
|
15591
15586
|
isAuthNeeded: false,
|
|
15592
15587
|
checkAuth: false,
|
|
15593
15588
|
blockers: [],
|
|
@@ -15607,8 +15602,6 @@ class JWTService extends BaseAuthService {
|
|
|
15607
15602
|
return void 0;
|
|
15608
15603
|
}
|
|
15609
15604
|
this.setTokens(tokens);
|
|
15610
|
-
this.dispatch(setLoggedIn(true));
|
|
15611
|
-
this.dispatch({ type: "rehydrated/setRehydrated", payload: true });
|
|
15612
15605
|
});
|
|
15613
15606
|
return Promise.race([timeoutPromise, successPromise]);
|
|
15614
15607
|
}
|