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

Commit

Permalink
fix(authService): handle logout also if server logoutUrl fails
Browse files Browse the repository at this point in the history
  • Loading branch information
RWOverdijk committed Feb 6, 2017
1 parent c119d0c commit 403a498
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/authService.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit 403a498

Please sign in to comment.