@etsoo/materialui 1.3.1 → 1.3.2
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/lib/app/ServiceApp.js +2 -1
- package/package.json +1 -1
- package/src/app/ServiceApp.ts +1 -1
package/lib/app/ServiceApp.js
CHANGED
|
@@ -116,6 +116,7 @@ export class ServiceApp extends ReactApp {
|
|
|
116
116
|
};
|
|
117
117
|
// Success callback
|
|
118
118
|
const success = async (result, failCallback) => {
|
|
119
|
+
var _a;
|
|
119
120
|
// Token
|
|
120
121
|
const refreshToken = this.getResponseToken(payload.response);
|
|
121
122
|
if (refreshToken == null || result.data == null) {
|
|
@@ -128,7 +129,7 @@ export class ServiceApp extends ReactApp {
|
|
|
128
129
|
// Use core system access token to service api to exchange service access token
|
|
129
130
|
const api = appApi ? appApi.api : this.serviceApi;
|
|
130
131
|
const serviceResult = await api.put("Auth/ExchangeToken", {
|
|
131
|
-
token: this.encryptEnhanced(userData.token, this.settings.serviceId.toString())
|
|
132
|
+
token: this.encryptEnhanced(userData.token, ((_a = appApi === null || appApi === void 0 ? void 0 : appApi.serviceId) !== null && _a !== void 0 ? _a : this.settings.serviceId).toString())
|
|
132
133
|
}, {
|
|
133
134
|
showLoading,
|
|
134
135
|
onError: (error) => {
|
package/package.json
CHANGED