Skip to content

Commit b2db7bf

Browse files
Merge pull request manfredsteyer#399 from hellerbarde/patch-1
upgrade example to new rxjs (6?) syntax with operators in .pipe()
2 parents 4e33567 + 2c80f80 commit b2db7bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs-src/session-checks.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const authConfig: AuthConfig = {
3333
To get notified, you can hook up for the event ``session_terminated``:
3434

3535
```TypeScript
36-
this.oauthService.events.filter(e => e.type === 'session_terminated').subscribe(e => {
37-
console.debug('Your session has been terminated!');
36+
this.oauthService.events.pipe(filter(e => e.type === 'session_terminated')).subscribe(e => {
37+
console.debug('Your session has been terminated!');
3838
})
39-
```
39+
```

0 commit comments

Comments
 (0)