Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
feat(authService): add onLogout. something is needed to eg clear cook…
Browse files Browse the repository at this point in the history
…ies after authomatic logout
  • Loading branch information
doktordirk committed Jun 5, 2016
1 parent 1a887ab commit 8ade299
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/authService.js
Expand Up @@ -354,6 +354,10 @@ export class AuthService {

this.authentication.redirect(redirectUri, this.config.logoutRedirect);

if (typeof this.onLogout === 'function') {
this.onLogout(response);
}

resolve(response);
});

Expand Down

0 comments on commit 8ade299

Please sign in to comment.