@gandalan/weblibs 1.1.62 → 1.1.64

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 CHANGED
@@ -290,6 +290,8 @@ export function createApi() {
290
290
  globalThis.idasTokens.token = this.token;
291
291
  // eslint-disable-next-line no-undef
292
292
  globalThis.idasTokens.refreshToken = this.refreshToken;
293
+ // eslint-disable-next-line no-undef
294
+ globalThis.idasTokens.userInfo = jwtDecode(this.token);
293
295
  localStorage.setItem("idas-refresh-token", this.refreshToken);
294
296
  } catch (e) {
295
297
  //this.redirectToLogin();
@@ -166,7 +166,7 @@ export function authBuilder() {
166
166
  }
167
167
 
168
168
  // eslint-disable-next-line no-undef
169
- globalThis.idasTokens = { token: this.token, refreshToken: this.refreshToken, appToken: this.appToken };
169
+ globalThis.idasTokens = { token: this.token, refreshToken: this.refreshToken, appToken: this.appToken, userInfo: jwtDecode(this.token) };
170
170
  },
171
171
 
172
172
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gandalan/weblibs",
3
- "version": "1.1.62",
3
+ "version": "1.1.64",
4
4
  "description": "WebLibs for Gandalan JS/TS/Svelte projects",
5
5
  "keywords": [
6
6
  "gandalan"