@overmap-ai/core 1.0.65-error-message-fix.4 → 1.0.65-error-message-fix.6
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
|
@@ -4068,7 +4068,7 @@ class JWTService extends BaseAuthService {
|
|
|
4068
4068
|
}
|
|
4069
4069
|
async initAuth(payload) {
|
|
4070
4070
|
const uuid = v4();
|
|
4071
|
-
const
|
|
4071
|
+
const result = await this.enqueueRequest({
|
|
4072
4072
|
uuid,
|
|
4073
4073
|
description: "Get token pair",
|
|
4074
4074
|
method: HttpMethod.POST,
|
|
@@ -4079,18 +4079,7 @@ class JWTService extends BaseAuthService {
|
|
|
4079
4079
|
blockers: [],
|
|
4080
4080
|
blocks: []
|
|
4081
4081
|
});
|
|
4082
|
-
|
|
4083
|
-
let timedOut = false;
|
|
4084
|
-
setTimeout(() => {
|
|
4085
|
-
timedOut = true;
|
|
4086
|
-
this.dispatch(markForDeletion(uuid));
|
|
4087
|
-
}, timeout * 1e3);
|
|
4088
|
-
return promise.then((tokens) => {
|
|
4089
|
-
if (timedOut) {
|
|
4090
|
-
return void 0;
|
|
4091
|
-
}
|
|
4092
|
-
this.setTokens(parseTokens(tokens));
|
|
4093
|
-
});
|
|
4082
|
+
this.setTokens(parseTokens(result));
|
|
4094
4083
|
}
|
|
4095
4084
|
}
|
|
4096
4085
|
class BaseApiService extends BaseService {
|