@trudb/tru-common-lib 0.0.671 → 0.0.672

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.
@@ -3615,7 +3615,6 @@ class TruAuth {
3615
3615
  .post(`${this.baseUrl}${TRU_AUTH_CONFIG.authUrl}/login`, loginRequest)
3616
3616
  .pipe(tap((data) => {
3617
3617
  this.auth.doLoginUser(data);
3618
- this.appEnvironment.user = data;
3619
3618
  this.loggedIn.next(true);
3620
3619
  }));
3621
3620
  }
@@ -5858,7 +5857,7 @@ class TruAuthJwtStrategy {
5858
5857
  }
5859
5858
  getCurrentUser() {
5860
5859
  //todo check v6 for how this should be done
5861
- return of(undefined);
5860
+ return of(JSON.parse(localStorage.getItem(this.JWT_TOKEN)).user);
5862
5861
  }
5863
5862
  isLoggedIn() {
5864
5863
  return !!this.getJwtToken();