@masterteam/delegations 0.0.48 → 0.0.49

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.
@@ -90,12 +90,18 @@ class GatewayLoginSuccessShell {
90
90
  class GatewayLogoutShell {
91
91
  static type = '[Auth] Logout';
92
92
  }
93
+ class GatewayLoginFailureShell {
94
+ static type = '[Auth] Login Failure';
95
+ }
93
96
  class GatewayLaunchApplicationShell {
94
97
  static type = '[Auth] Launch Application';
95
98
  }
96
99
  class GatewaySetAppSessionShell {
97
100
  static type = '[Auth] Set App Session';
98
101
  }
102
+ class GatewayRestoreBrowserHandoffShell {
103
+ static type = '[Auth] Restore Browser Handoff';
104
+ }
99
105
  class GatewayClearAppSessionShell {
100
106
  static type = '[Auth] Clear App Session';
101
107
  }
@@ -130,13 +136,13 @@ let DelegationSessionState = class DelegationSessionState {
130
136
  // so the prompt fires once per real login.
131
137
  this.store.dispatch(new LoadDelegationCandidates()));
132
138
  this.actions$
133
- .pipe(ofActionDispatched(GatewayLogoutShell))
139
+ .pipe(ofActionDispatched(GatewayLogoutShell, GatewayLoginFailureShell))
134
140
  .subscribe(() => this.store.dispatch(new EndDelegationSession('Logout')));
135
141
  this.actions$
136
- .pipe(ofActionDispatched(GatewayLaunchApplicationShell, GatewaySetAppSessionShell, GatewayClearAppSessionShell, GatewayClearAllAppSessionsShell))
142
+ .pipe(ofActionDispatched(GatewayLaunchApplicationShell, GatewaySetAppSessionShell, GatewayRestoreBrowserHandoffShell, GatewayClearAppSessionShell, GatewayClearAllAppSessionsShell))
137
143
  .subscribe(() => this.store.dispatch(new EndDelegationSession('AppSwitch')));
138
144
  this.actions$
139
- .pipe(ofActionSuccessful(GatewayLaunchApplicationShell, GatewaySetAppSessionShell))
145
+ .pipe(ofActionSuccessful(GatewayLaunchApplicationShell, GatewaySetAppSessionShell, GatewayRestoreBrowserHandoffShell))
140
146
  .subscribe(() => this.store.dispatch(new LoadDelegationCandidates()));
141
147
  }
142
148
  // ---------------------------------------------------------------------------