We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b02b6ae + 31630d6 commit c6a1995Copy full SHA for c6a1995
angular-oauth2-oidc/src/events.ts
@@ -18,7 +18,8 @@ export type EventType =
18
| 'token_expires'
19
| 'session_changed'
20
| 'session_error'
21
-| 'session_terminated';
+| 'session_terminated'
22
+| 'logout';
23
24
export abstract class OAuthEvent {
25
constructor(
angular-oauth2-oidc/src/oauth-service.ts
@@ -1398,6 +1398,8 @@ export class OAuthService
1398
this._storage.removeItem('access_token_stored_at');
1399
1400
this.silentRefreshSubject = null;
1401
+
1402
+ this.eventsSubject.next(new OAuthInfoEvent('logout'));
1403
1404
if (!this.logoutUrl) return;
1405
if (noRedirectToLogoutUrl) return;
0 commit comments