@arsedizioni/ars-utils 20.2.25 → 20.2.27

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.
@@ -1059,7 +1059,7 @@ declare class ClipperService implements OnDestroy {
1059
1059
  * Return current auth token
1060
1060
  * @param refresh: true to get the refresh token. Default is false.
1061
1061
  */
1062
- getAuthToken(refresh?: boolean): string;
1062
+ getAuthToken(refresh?: boolean): string | undefined;
1063
1063
  /**
1064
1064
  * Get the two form factor authentication token
1065
1065
  */
@@ -767,7 +767,7 @@ declare class EvolutionService implements OnDestroy {
767
767
  * Return current JWT token
768
768
  * @param refresh: true to get the refresh token. Default is false.
769
769
  */
770
- getToken(refresh?: boolean): string;
770
+ getToken(refresh?: boolean): string | undefined;
771
771
  /**
772
772
  * Store login info
773
773
  */
@@ -2211,7 +2211,7 @@ class ClipperService {
2211
2211
  if (token && token[0] === '"') {
2212
2212
  return token.substring(1, token.length - 1);
2213
2213
  }
2214
- return token ?? '';
2214
+ return token;
2215
2215
  }
2216
2216
  /**
2217
2217
  * Get the two form factor authentication token