@lenne.tech/ng-base 14.1.0 → 14.1.1

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.
@@ -976,6 +976,9 @@ class AuthService {
976
976
  // Current User
977
977
  // #################################################################
978
978
  get currentUser() {
979
+ if (!localStorage) {
980
+ return undefined;
981
+ }
979
982
  return this._currentUser.value;
980
983
  }
981
984
  set currentUser(user) {
@@ -989,6 +992,9 @@ class AuthService {
989
992
  // Token
990
993
  // #################################################################
991
994
  get token() {
995
+ if (!localStorage) {
996
+ return undefined;
997
+ }
992
998
  return this._token.value;
993
999
  }
994
1000
  set token(token) {