@gandalan/weblibs 1.0.27 → 1.0.28

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/IDAS.js CHANGED
@@ -4,7 +4,7 @@ import jwt_decode from 'jwt-decode';
4
4
 
5
5
  export function IDASFactory(settings)
6
6
  {
7
- let defaultSettings = {
7
+ /*let defaultSettings = {
8
8
  appToken: localStorage.getItem("IDAS_AppToken"),
9
9
  mandantGuid: localStorage.getItem("IDAS_MandantGuid"),
10
10
  apiBaseurl: localStorage.getItem("IDAS_ApiBaseUrl"),
@@ -12,7 +12,7 @@ export function IDASFactory(settings)
12
12
  jwtRefreshToken: localStorage.getItem("IDAS_AuthJwtRefreshToken"),
13
13
  jwtCallbackPath: localStorage.getItem("IDAS_AuthJwtCallbackPath"),
14
14
  };
15
- settings = { ...defaultSettings, ...settings };
15
+ settings = { ...defaultSettings, ...settings };*/
16
16
  let idas = undefined;
17
17
  if (!isInvalid(settings))
18
18
  {
package/api/authUtils.js CHANGED
@@ -58,6 +58,9 @@ export async function setup(settings)
58
58
  settings.jwtRefreshToken = refreshToken;
59
59
  localStorage.setItem("IDAS_AuthJwtRefreshToken", refreshToken);
60
60
  }
61
+ let mandantGuid = decoded["mandantGuid"] || "";
62
+ if (mandantGuid)
63
+ settings.mandantGuid = mandantGuid;
61
64
  }
62
65
  console.log("Setup finished", settings);
63
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gandalan/weblibs",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
4
4
  "description": "WebLibs for Gandalan JS/TS/Svelte projects",
5
5
  "keywords": [
6
6
  "gandalan"