@arsedizioni/ars-utils 20.2.30 → 20.2.32
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/index.d.ts +1 -1
- package/clipper.ui/index.d.ts +1 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +5 -7
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +6 -2
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-support.common.mjs +7 -3
- package/fesm2022/arsedizioni-ars-utils-support.common.mjs.map +1 -1
- package/package.json +9 -9
|
@@ -1113,7 +1113,7 @@ declare class ClipperService implements OnDestroy {
|
|
|
1113
1113
|
/**
|
|
1114
1114
|
* Confirm MFA procedure
|
|
1115
1115
|
* @param code: the confirm code
|
|
1116
|
-
* @param
|
|
1116
|
+
* @param flags: the login flags
|
|
1117
1117
|
*/
|
|
1118
1118
|
confirmIdentity(code: string, flags?: number): rxjs.Observable<ApiResult<ClipperLoginResult>>;
|
|
1119
1119
|
/**
|
package/clipper.ui/index.d.ts
CHANGED
|
@@ -1039,7 +1039,7 @@ declare class ClipperDocumentMenuComponent implements OnInit, OnDestroy {
|
|
|
1039
1039
|
private changeDetector;
|
|
1040
1040
|
private clipperService;
|
|
1041
1041
|
readonly useSelections: _angular_core.InputSignal<boolean>;
|
|
1042
|
-
readonly selectionSource: _angular_core.InputSignal<"
|
|
1042
|
+
readonly selectionSource: _angular_core.InputSignal<"bag" | "selection" | "none">;
|
|
1043
1043
|
protected selection: () => ClipperDocumentInfo[];
|
|
1044
1044
|
readonly parent: _angular_core.InputSignal<ClipperSearchResultManager>;
|
|
1045
1045
|
readonly item: _angular_core.InputSignal<ClipperDocumentInfo>;
|
|
@@ -2143,7 +2143,7 @@ class ClipperService {
|
|
|
2143
2143
|
*/
|
|
2144
2144
|
getTokenExpirationDate() {
|
|
2145
2145
|
const token = this.getAuthToken();
|
|
2146
|
-
if (!token)
|
|
2146
|
+
if (!token || token.length === 0)
|
|
2147
2147
|
return undefined;
|
|
2148
2148
|
// Parse json object from base64 encoded jwt token
|
|
2149
2149
|
const jwtToken = JSON.parse(atob(token.split('.')[1]));
|
|
@@ -2191,7 +2191,9 @@ class ClipperService {
|
|
|
2191
2191
|
* @param value : the login result
|
|
2192
2192
|
*/
|
|
2193
2193
|
setToken(value) {
|
|
2194
|
-
|
|
2194
|
+
if (value.authToken ?? value.token) {
|
|
2195
|
+
sessionStorage.setItem('clipper_auth', value.authToken ?? value.token);
|
|
2196
|
+
}
|
|
2195
2197
|
if (value.refreshToken) {
|
|
2196
2198
|
sessionStorage.setItem('clipper_refresh', value.refreshToken);
|
|
2197
2199
|
}
|
|
@@ -2336,10 +2338,6 @@ class ClipperService {
|
|
|
2336
2338
|
return throwError(() => err);
|
|
2337
2339
|
}), map((r) => {
|
|
2338
2340
|
if (r.success) {
|
|
2339
|
-
this._loginInfo = { context: undefined };
|
|
2340
|
-
this._loginInfo.context = r.value.context;
|
|
2341
|
-
this._loginInfo.channels = r.value.settings;
|
|
2342
|
-
this._loginInfo.oauth = oauth;
|
|
2343
2341
|
if (!oauth && r.value.requiresMfa) {
|
|
2344
2342
|
// Notify login is pending
|
|
2345
2343
|
this.broadcastService.sendMessage(ClipperMessages.LOGIN_PENDING, { flags: flags });
|
|
@@ -2371,7 +2369,7 @@ class ClipperService {
|
|
|
2371
2369
|
/**
|
|
2372
2370
|
* Confirm MFA procedure
|
|
2373
2371
|
* @param code: the confirm code
|
|
2374
|
-
* @param
|
|
2372
|
+
* @param flags: the login flags
|
|
2375
2373
|
*/
|
|
2376
2374
|
confirmIdentity(code, flags = ClipperLoginFlags.None) {
|
|
2377
2375
|
return this.httpClient
|