@overmap-ai/core 1.0.65-error-message-fix.5 → 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.
|
@@ -4056,7 +4056,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4056
4056
|
}
|
|
4057
4057
|
async initAuth(payload) {
|
|
4058
4058
|
const uuid$1 = uuid.v4();
|
|
4059
|
-
const
|
|
4059
|
+
const result = await this.enqueueRequest({
|
|
4060
4060
|
uuid: uuid$1,
|
|
4061
4061
|
description: "Get token pair",
|
|
4062
4062
|
method: HttpMethod.POST,
|
|
@@ -4066,19 +4066,8 @@ var __publicField = (obj, key, value) => {
|
|
|
4066
4066
|
checkAuth: false,
|
|
4067
4067
|
blockers: [],
|
|
4068
4068
|
blocks: []
|
|
4069
|
-
}).then(parseTokens);
|
|
4070
|
-
const timeout = 10;
|
|
4071
|
-
let timedOut = false;
|
|
4072
|
-
setTimeout(() => {
|
|
4073
|
-
timedOut = true;
|
|
4074
|
-
this.dispatch(markForDeletion(uuid$1));
|
|
4075
|
-
}, timeout * 1e3);
|
|
4076
|
-
void promise.then((tokens) => {
|
|
4077
|
-
if (timedOut)
|
|
4078
|
-
return;
|
|
4079
|
-
this.setTokens(tokens);
|
|
4080
4069
|
});
|
|
4081
|
-
|
|
4070
|
+
this.setTokens(parseTokens(result));
|
|
4082
4071
|
}
|
|
4083
4072
|
}
|
|
4084
4073
|
class BaseApiService extends BaseService {
|