@gandalan/weblibs 1.1.62 → 1.1.63
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 +2 -0
- package/api/fluentAuthBuilder.js +1 -1
- package/package.json +1 -1
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();
|
package/api/fluentAuthBuilder.js
CHANGED
|
@@ -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
|
/**
|