@trudb/tru-common-lib 0.0.719 → 0.0.721

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3728,12 +3728,11 @@ class TruAuth {
3728
3728
  setUser() {
3729
3729
  this.auth.setUser(this.user);
3730
3730
  }
3731
- logout(logoutRequest) {
3732
- return this.http
3733
- .post(`${this.baseUrl}${TRU_AUTH_CONFIG.authUrl}/logout`, logoutRequest)
3734
- .pipe(tap(() => {
3731
+ logout() {
3732
+ this.http
3733
+ .post(`${this.baseUrl}${TRU_AUTH_CONFIG.authUrl}/logout`, null).subscribe(() => {
3735
3734
  this.doLogoutAndRedirectToLogin();
3736
- }));
3735
+ });
3737
3736
  }
3738
3737
  userClaims() {
3739
3738
  return this.http
@@ -3783,7 +3782,7 @@ class TruToolbarUserProfile {
3783
3782
  this.uiNotification.changePassword();
3784
3783
  };
3785
3784
  this.onLogoutButtonClicked = () => {
3786
- this.auth.logout({ username: this.user.username });
3785
+ this.auth.logout();
3787
3786
  };
3788
3787
  this.initial = user?.firstName ? user?.firstName.slice(0, 1).toUpperCase() : user?.username?.slice(0, 1).toUpperCase();
3789
3788
  this.name = user?.firstName && user?.lastName ? user?.firstName + ' ' + user?.lastName : user?.username;