@gandalan/weblibs 1.1.47 → 1.1.49
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/api/fluentApi.js +3 -3
- package/package.json +1 -1
package/api/fluentApi.js
CHANGED
|
@@ -192,9 +192,9 @@ export function api() {
|
|
|
192
192
|
this.token = temptoken;
|
|
193
193
|
this.refreshToken = getRefreshToken(temptoken);
|
|
194
194
|
// eslint-disable-next-line no-undef
|
|
195
|
-
globalThis.
|
|
195
|
+
globalThis.idasTokens.token = this.token;
|
|
196
196
|
// eslint-disable-next-line no-undef
|
|
197
|
-
globalThis.
|
|
197
|
+
globalThis.idasTokens.refreshToken = this.refreshToken;
|
|
198
198
|
localStorage.setItem("idas-refresh-token", this.refreshToken);
|
|
199
199
|
} catch (e) {
|
|
200
200
|
this.redirectToLogin();
|
|
@@ -202,7 +202,7 @@ export function api() {
|
|
|
202
202
|
},
|
|
203
203
|
|
|
204
204
|
async ensureBaseUrlIsSet() {
|
|
205
|
-
if (this.env &&
|
|
205
|
+
if (this.env && !this.baseUrl) {
|
|
206
206
|
const envInfo = await fetchEnv(this.env);
|
|
207
207
|
this.baseUrl = envInfo.idas;
|
|
208
208
|
this.authUrl = envInfo.idas;
|