ntk-cms-api 1.2.211 → 1.2.212

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.
@@ -1304,7 +1304,7 @@ class ApiServerBase {
1304
1304
  return '';
1305
1305
  }
1306
1306
  setToken(userToken, deviceToken, refreshToken) {
1307
- if ((!userToken || userToken.length === 0) && (!deviceToken && deviceToken.length === 0)) {
1307
+ if ((!userToken || userToken.length === 0) && (!deviceToken || deviceToken.length === 0)) {
1308
1308
  localStorage.removeItem(this.keyUserToken);
1309
1309
  localStorage.removeItem(this.keyDeviceToken);
1310
1310
  return;