From 8ade299dcb9546d6e7f392e04b6015fc840959c0 Mon Sep 17 00:00:00 2001 From: doktordirk Date: Sun, 5 Jun 2016 18:14:38 +0200 Subject: [PATCH] feat(authService): add onLogout. something is needed to eg clear cookies after authomatic logout --- src/authService.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/authService.js b/src/authService.js index 7565228..6f961f0 100644 --- a/src/authService.js +++ b/src/authService.js @@ -354,6 +354,10 @@ export class AuthService { this.authentication.redirect(redirectUri, this.config.logoutRedirect); + if (typeof this.onLogout === 'function') { + this.onLogout(response); + } + resolve(response); });