@smartbit4all/ng-client 3.3.217 → 3.3.219

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.
@@ -1,4 +1,14 @@
1
1
  export interface SmartSessionHandlerService {
2
+ /**
3
+ * Handles SessionErrors with RESTART behaviour. With this method it is possible to add application
4
+ * specific logic to the session restart mechanism.
5
+ * E.g.: navigate to the login page when the session can not be refreshed.
6
+ *
7
+ * By default when the session can not be refreshed, the smart-session.service clears and starts a new session.
8
+ * By throwing an exception in this method it is possible to avoid this default functionality,
9
+ * and handle the session recreation completely here in the application level.
10
+ * @param sessionError the SessionError with RESTART behaviour cached in the http interceptor
11
+ */
2
12
  handleSessionError(sessionError: SessionError): Promise<void>;
3
13
  }
4
14
  export interface SessionError {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartbit4all/ng-client",
3
- "version": "3.3.217",
3
+ "version": "3.3.219",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^13.3.9",
6
6
  "@angular/common": "^13.2.0",
Binary file