Skip to content

Commit

Permalink
fix for logout issue
Browse files Browse the repository at this point in the history
  • Loading branch information
asadsahi committed Jan 8, 2018
1 parent d5a4e39 commit ec6f425
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ClientApp/app/core/services/account.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@ export class AccountService {
return undefined;
}
public logout() {
this.dataService.post('api/account/logout').subscribe((res) => {
this.oAuthService.logOut();
this.utilityService.navigateToSignIn();
});
this.oAuthService.logOut();
this.utilityService.navigateToSignIn();
}

public get accessToken(): string {
Expand Down

0 comments on commit ec6f425

Please sign in to comment.