@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.
@@ -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 promise = this.enqueueRequest({
4059
+ const result = await this.enqueueRequest({
4060
4060
  uuid: uuid$1,
4061
4061
  description: "Get token pair",
4062
4062
  method: HttpMethod.POST,
@@ -4067,18 +4067,7 @@ var __publicField = (obj, key, value) => {
4067
4067
  blockers: [],
4068
4068
  blocks: []
4069
4069
  });
4070
- const timeout = 10;
4071
- let timedOut = false;
4072
- setTimeout(() => {
4073
- timedOut = true;
4074
- this.dispatch(markForDeletion(uuid$1));
4075
- }, timeout * 1e3);
4076
- return promise.then((tokens) => {
4077
- if (timedOut) {
4078
- return void 0;
4079
- }
4080
- this.setTokens(parseTokens(tokens));
4081
- });
4070
+ this.setTokens(parseTokens(result));
4082
4071
  }
4083
4072
  }
4084
4073
  class BaseApiService extends BaseService {