diff --git a/src/authService.js b/src/authService.js
index <HASH>..<HASH> 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);
     });
feat(authService): add onLogout. something is needed to eg clear cookies after authomatic logout