@lenne.tech/ng-base 14.1.0 → 14.2.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.
@@ -961,6 +961,9 @@ class AuthService {
961
961
  // Current User
962
962
  // #################################################################
963
963
  get currentUser() {
964
+ if (!localStorage) {
965
+ return undefined;
966
+ }
964
967
  return this._currentUser.value;
965
968
  }
966
969
  set currentUser(user) {
@@ -974,6 +977,9 @@ class AuthService {
974
977
  // Token
975
978
  // #################################################################
976
979
  get token() {
980
+ if (!localStorage) {
981
+ return undefined;
982
+ }
977
983
  return this._token.value;
978
984
  }
979
985
  set token(token) {