Permalink
Browse files

fix(authService): handle logout also if server logoutUrl fails

  • Loading branch information...
RWOverdijk committed Feb 6, 2017
1 parent c119d0c commit 403a498e53805274e907b85371bcce80baa9c0ad
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/authService.js
@@ -503,8 +503,10 @@ export class AuthService {
});
}
} else {
return this.config.logoutUrl
? this.client.request(this.config.logoutMethod, this.config.joinBase(this.config.logoutUrl)).then(localLogout)
return this.config.logoutUrl
? this.client.request(this.config.logoutMethod, this.config.joinBase(this.config.logoutUrl))
.then(localLogout)
.catch(localLogout)
: localLogout();
}
}

0 comments on commit 403a498

Please sign in to comment.