@trudb/tru-common-lib 0.0.715 → 0.0.716
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 +8 -1
- package/fesm2015/trudb-tru-common-lib.mjs +7 -0
- package/fesm2015/trudb-tru-common-lib.mjs.map +1 -1
- package/fesm2020/trudb-tru-common-lib.mjs +7 -0
- package/fesm2020/trudb-tru-common-lib.mjs.map +1 -1
- package/lib/components/login/services/tru-auth.d.ts +1 -0
- package/package.json +1 -1
|
@@ -3735,6 +3735,13 @@ class TruAuth {
|
|
|
3735
3735
|
this.doLogoutAndRedirectToLogin();
|
|
3736
3736
|
}));
|
|
3737
3737
|
}
|
|
3738
|
+
userClaims() {
|
|
3739
|
+
return this.http
|
|
3740
|
+
.post(`${this.baseUrl}${TRU_AUTH_CONFIG.authUrl}/userClaims`, null)
|
|
3741
|
+
.pipe(tap((userClaims) => {
|
|
3742
|
+
this.user.create(userClaims);
|
|
3743
|
+
}));
|
|
3744
|
+
}
|
|
3738
3745
|
get isLoggedIn() {
|
|
3739
3746
|
if (!this.loggedIn.value) {
|
|
3740
3747
|
this.loggedIn.next(this.auth.isLoggedIn());
|