Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/classes/OAuthErrorEvent.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ <h3 id="constructor">Constructor</h3>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="43" class="link-to-prism">projects/lib/src/events.ts:43</a></div>
<div class="io-line">Defined in <a href="" data-line="44" class="link-to-prism">projects/lib/src/events.ts:44</a></div>
</td>
</tr>

Expand Down Expand Up @@ -179,6 +179,7 @@ <h3 id="constructor">Constructor</h3>
| &#x27;session_changed&#x27;
| &#x27;session_error&#x27;
| &#x27;session_terminated&#x27;
| &#x27;session_unchanged&#x27;
| &#x27;logout&#x27;
| &#x27;popup_closed&#x27;
| &#x27;popup_blocked&#x27;
Expand Down
3 changes: 2 additions & 1 deletion docs/classes/OAuthEvent.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ <h3 id="constructor">Constructor</h3>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="27" class="link-to-prism">projects/lib/src/events.ts:27</a></div>
<div class="io-line">Defined in <a href="" data-line="28" class="link-to-prism">projects/lib/src/events.ts:28</a></div>
</td>
</tr>

Expand Down Expand Up @@ -149,6 +149,7 @@ <h3 id="constructor">Constructor</h3>
| &#x27;session_changed&#x27;
| &#x27;session_error&#x27;
| &#x27;session_terminated&#x27;
| &#x27;session_unchanged&#x27;
| &#x27;logout&#x27;
| &#x27;popup_closed&#x27;
| &#x27;popup_blocked&#x27;
Expand Down
3 changes: 2 additions & 1 deletion docs/classes/OAuthInfoEvent.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ <h3 id="constructor">Constructor</h3>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="37" class="link-to-prism">projects/lib/src/events.ts:37</a></div>
<div class="io-line">Defined in <a href="" data-line="38" class="link-to-prism">projects/lib/src/events.ts:38</a></div>
</td>
</tr>

Expand Down Expand Up @@ -167,6 +167,7 @@ <h3 id="constructor">Constructor</h3>
| &#x27;session_changed&#x27;
| &#x27;session_error&#x27;
| &#x27;session_terminated&#x27;
| &#x27;session_unchanged&#x27;
| &#x27;logout&#x27;
| &#x27;popup_closed&#x27;
| &#x27;popup_blocked&#x27;
Expand Down
3 changes: 2 additions & 1 deletion docs/classes/OAuthSuccessEvent.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ <h3 id="constructor">Constructor</h3>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="31" class="link-to-prism">projects/lib/src/events.ts:31</a></div>
<div class="io-line">Defined in <a href="" data-line="32" class="link-to-prism">projects/lib/src/events.ts:32</a></div>
</td>
</tr>

Expand Down Expand Up @@ -167,6 +167,7 @@ <h3 id="constructor">Constructor</h3>
| &#x27;session_changed&#x27;
| &#x27;session_error&#x27;
| &#x27;session_terminated&#x27;
| &#x27;session_unchanged&#x27;
| &#x27;logout&#x27;
| &#x27;popup_closed&#x27;
| &#x27;popup_blocked&#x27;
Expand Down
643 changes: 317 additions & 326 deletions docs/injectables/OAuthService.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/js/search/search_index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/miscellaneous/typealiases.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ <h3>projects/lib/src/events.ts</h3>
</tr>
<tr>
<td class="col-md-4">
<code> <code><a href="../miscellaneous/variables.html#err" target="_self" >&quot;discovery_document_loaded&quot; | &quot;jwks_load_error&quot; | &quot;invalid_nonce_in_state&quot; | &quot;discovery_document_load_error&quot; | &quot;discovery_document_validation_error&quot; | &quot;user_profile_loaded&quot; | &quot;user_profile_load_error&quot; | &quot;token_received&quot; | &quot;token_error&quot; | &quot;code_error&quot; | &quot;token_refreshed&quot; | &quot;token_refresh_error&quot; | &quot;silent_refresh_error&quot; | &quot;silently_refreshed&quot; | &quot;silent_refresh_timeout&quot; | &quot;token_validation_error&quot; | &quot;token_expires&quot; | &quot;session_changed&quot; | &quot;session_error&quot; | &quot;session_terminated&quot; | &quot;logout&quot; | &quot;popup_closed&quot; | &quot;popup_blocked&quot; | &quot;token_revoke_error&quot;</a></code>
<code> <code><a href="../miscellaneous/variables.html#err" target="_self" >&quot;discovery_document_loaded&quot; | &quot;jwks_load_error&quot; | &quot;invalid_nonce_in_state&quot; | &quot;discovery_document_load_error&quot; | &quot;discovery_document_validation_error&quot; | &quot;user_profile_loaded&quot; | &quot;user_profile_load_error&quot; | &quot;token_received&quot; | &quot;token_error&quot; | &quot;code_error&quot; | &quot;token_refreshed&quot; | &quot;token_refresh_error&quot; | &quot;silent_refresh_error&quot; | &quot;silently_refreshed&quot; | &quot;silent_refresh_timeout&quot; | &quot;token_validation_error&quot; | &quot;token_expires&quot; | &quot;session_changed&quot; | &quot;session_error&quot; | &quot;session_terminated&quot; | &quot;session_unchanged&quot; | &quot;logout&quot; | &quot;popup_closed&quot; | &quot;popup_blocked&quot; | &quot;token_revoke_error&quot;</a></code>
</code>
</td>
</tr>
Expand Down
1 change: 1 addition & 0 deletions projects/lib/src/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export type EventType =
| 'session_changed'
| 'session_error'
| 'session_terminated'
| 'session_unchanged'
| 'logout'
| 'popup_closed'
| 'popup_blocked'
Expand Down
5 changes: 4 additions & 1 deletion projects/lib/src/oauth-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1252,7 +1252,9 @@ export class OAuthService extends AuthConfig implements OnDestroy {
// only run in Angular zone if it is 'changed' or 'error'
switch (e.data) {
case 'unchanged':
this.handleSessionUnchanged();
this.ngZone.run(() => {
this.handleSessionUnchanged();
});
break;
case 'changed':
this.ngZone.run(() => {
Expand All @@ -1277,6 +1279,7 @@ export class OAuthService extends AuthConfig implements OnDestroy {

protected handleSessionUnchanged(): void {
this.debug('session check', 'session unchanged');
this.eventsSubject.next(new OAuthInfoEvent('session_unchanged'));
}

protected handleSessionChange(): void {
Expand Down