File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ export type EventType =
19
19
| 'session_changed'
20
20
| 'session_error'
21
21
| 'session_terminated'
22
+ | 'session_unchanged'
22
23
| 'logout'
23
24
| 'popup_closed'
24
25
| 'popup_blocked'
Original file line number Diff line number Diff line change @@ -1252,7 +1252,9 @@ export class OAuthService extends AuthConfig implements OnDestroy {
1252
1252
// only run in Angular zone if it is 'changed' or 'error'
1253
1253
switch ( e . data ) {
1254
1254
case 'unchanged' :
1255
- this . handleSessionUnchanged ( ) ;
1255
+ this . ngZone . run ( ( ) => {
1256
+ this . handleSessionUnchanged ( ) ;
1257
+ } ) ;
1256
1258
break ;
1257
1259
case 'changed' :
1258
1260
this . ngZone . run ( ( ) => {
@@ -1277,6 +1279,7 @@ export class OAuthService extends AuthConfig implements OnDestroy {
1277
1279
1278
1280
protected handleSessionUnchanged ( ) : void {
1279
1281
this . debug ( 'session check' , 'session unchanged' ) ;
1282
+ this . eventsSubject . next ( new OAuthInfoEvent ( 'session_unchanged' ) ) ;
1280
1283
}
1281
1284
1282
1285
protected handleSessionChange ( ) : void {
You can’t perform that action at this time.
0 commit comments