@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.
- package/esm2020/lib/components/login/services/tru-auth.mjs +5 -6
- package/esm2020/lib/components/toolbar/user-profile/tru-toolbar-user-profile.mjs +2 -2
- package/fesm2015/trudb-tru-common-lib.mjs +5 -6
- package/fesm2015/trudb-tru-common-lib.mjs.map +1 -1
- package/fesm2020/trudb-tru-common-lib.mjs +5 -6
- package/fesm2020/trudb-tru-common-lib.mjs.map +1 -1
- package/lib/components/login/services/tru-auth.d.ts +1 -2
- package/package.json +1 -1
|
@@ -3728,12 +3728,11 @@ class TruAuth {
|
|
|
3728
3728
|
setUser() {
|
|
3729
3729
|
this.auth.setUser(this.user);
|
|
3730
3730
|
}
|
|
3731
|
-
logout(
|
|
3732
|
-
|
|
3733
|
-
.post(`${this.baseUrl}${TRU_AUTH_CONFIG.authUrl}/logout`,
|
|
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(
|
|
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;
|