@trudb/tru-common-lib 0.0.719 → 0.0.720

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,9 +3728,9 @@ class TruAuth {
3728
3728
  setUser() {
3729
3729
  this.auth.setUser(this.user);
3730
3730
  }
3731
- logout(logoutRequest) {
3731
+ logout() {
3732
3732
  return this.http
3733
- .post(`${this.baseUrl}${TRU_AUTH_CONFIG.authUrl}/logout`, logoutRequest)
3733
+ .post(`${this.baseUrl}${TRU_AUTH_CONFIG.authUrl}/logout`, null)
3734
3734
  .pipe(tap(() => {
3735
3735
  this.doLogoutAndRedirectToLogin();
3736
3736
  }));
@@ -3783,7 +3783,7 @@ class TruToolbarUserProfile {
3783
3783
  this.uiNotification.changePassword();
3784
3784
  };
3785
3785
  this.onLogoutButtonClicked = () => {
3786
- this.auth.logout({ username: this.user.username });
3786
+ this.auth.logout();
3787
3787
  };
3788
3788
  this.initial = user?.firstName ? user?.firstName.slice(0, 1).toUpperCase() : user?.username?.slice(0, 1).toUpperCase();
3789
3789
  this.name = user?.firstName && user?.lastName ? user?.firstName + ' ' + user?.lastName : user?.username;