@arsedizioni/ars-utils 19.0.148 → 19.0.150
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/clipper.common/common/services/clipper.service.d.ts +1 -1
- package/evolution.common/common/services/evolution.service.d.ts +1 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +14 -8
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +12 -6
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-support.common.mjs +12 -6
- package/fesm2022/arsedizioni-ars-utils-support.common.mjs.map +1 -1
- package/package.json +8 -8
- package/support.common/common/services/support.service.d.ts +1 -1
|
@@ -115,7 +115,7 @@ export declare class ClipperService implements OnDestroy {
|
|
|
115
115
|
/**
|
|
116
116
|
* Perform token refresh
|
|
117
117
|
*/
|
|
118
|
-
refresh(): import("rxjs").Observable<
|
|
118
|
+
refresh(): import("rxjs").Observable<ApiResult<ClipperLoginResult>>;
|
|
119
119
|
/**
|
|
120
120
|
* Initialize channels
|
|
121
121
|
*/
|
|
@@ -107,7 +107,7 @@ export declare class EvolutionService implements OnDestroy {
|
|
|
107
107
|
/**
|
|
108
108
|
* Perform token refresh
|
|
109
109
|
*/
|
|
110
|
-
refresh(): import("rxjs").Observable<
|
|
110
|
+
refresh(): import("rxjs").Observable<ApiResult<EvolutionLoginResult>>;
|
|
111
111
|
/**
|
|
112
112
|
* Convert folders in a tree of Node object.
|
|
113
113
|
* @param folders : the subfolders group or null to root
|
|
@@ -2209,14 +2209,19 @@ class ClipperService {
|
|
|
2209
2209
|
}
|
|
2210
2210
|
// Eveluate current session storage in case of page refresh (F5)
|
|
2211
2211
|
if (!this.loggedIn() && !this.isTokenExpired()) {
|
|
2212
|
-
//
|
|
2213
|
-
this.
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2212
|
+
// Refresh token
|
|
2213
|
+
this.refresh().subscribe(r => {
|
|
2214
|
+
if (r.success) {
|
|
2215
|
+
// Auto login
|
|
2216
|
+
this.loggedIn.set(true);
|
|
2217
|
+
// Keep alive
|
|
2218
|
+
this.setKeepAlive();
|
|
2219
|
+
// Initialize channels
|
|
2220
|
+
this.initializeChannels();
|
|
2221
|
+
// Notify
|
|
2222
|
+
this.broadcastService.sendMessage(ClipperMessages.LOGIN_COMPLETED);
|
|
2223
|
+
}
|
|
2224
|
+
});
|
|
2220
2225
|
}
|
|
2221
2226
|
}
|
|
2222
2227
|
/**
|
|
@@ -2452,6 +2457,7 @@ class ClipperService {
|
|
|
2452
2457
|
return this.httpClient.get(this._serviceUri + '/refresh2/?token=' + this.getToken(true)).pipe(map((r) => {
|
|
2453
2458
|
// Update token
|
|
2454
2459
|
this.setToken(r.value);
|
|
2460
|
+
return r;
|
|
2455
2461
|
}));
|
|
2456
2462
|
}
|
|
2457
2463
|
/**
|