@overmap-ai/core 1.0.65-error-message-fix.6 → 1.0.65-error-message-fix.7
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 +17 -12
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +17 -12
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/overmap-core.js
CHANGED
|
@@ -4068,18 +4068,23 @@ class JWTService extends BaseAuthService {
|
|
|
4068
4068
|
}
|
|
4069
4069
|
async initAuth(payload) {
|
|
4070
4070
|
const uuid = v4();
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4071
|
+
try {
|
|
4072
|
+
const result = await this.enqueueRequest({
|
|
4073
|
+
uuid,
|
|
4074
|
+
description: "Get token pair",
|
|
4075
|
+
method: HttpMethod.POST,
|
|
4076
|
+
url: this.initTokensUrl,
|
|
4077
|
+
payload,
|
|
4078
|
+
isAuthNeeded: false,
|
|
4079
|
+
checkAuth: false,
|
|
4080
|
+
blockers: [],
|
|
4081
|
+
blocks: []
|
|
4082
|
+
});
|
|
4083
|
+
this.setTokens(parseTokens(result));
|
|
4084
|
+
} catch (e) {
|
|
4085
|
+
this.dispatch(markForDeletion(uuid));
|
|
4086
|
+
throw e;
|
|
4087
|
+
}
|
|
4083
4088
|
}
|
|
4084
4089
|
}
|
|
4085
4090
|
class BaseApiService extends BaseService {
|