@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.
Files changed (2) hide show
  1. package/api/fluentApi.js +3 -3
  2. 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.idas.token = this.token;
195
+ globalThis.idasTokens.token = this.token;
196
196
  // eslint-disable-next-line no-undef
197
- globalThis.idas.refreshToken = this.refreshToken;
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 && (!this.baseUrl || !this.authUrl)) {
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gandalan/weblibs",
3
- "version": "1.1.47",
3
+ "version": "1.1.49",
4
4
  "description": "WebLibs for Gandalan JS/TS/Svelte projects",
5
5
  "keywords": [
6
6
  "gandalan"