@etsoo/appscript 1.6.15 → 1.6.16

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.
@@ -1781,7 +1781,7 @@ class CoreApp {
1781
1781
  */
1782
1782
  async tryLogin(data) {
1783
1783
  // Check status
1784
- if (this._isTryingLogin)
1784
+ if (this._isTryingLogin || this.deviceId === "")
1785
1785
  return false;
1786
1786
  this._isTryingLogin = true;
1787
1787
  return true;
@@ -1778,7 +1778,7 @@ export class CoreApp {
1778
1778
  */
1779
1779
  async tryLogin(data) {
1780
1780
  // Check status
1781
- if (this._isTryingLogin)
1781
+ if (this._isTryingLogin || this.deviceId === "")
1782
1782
  return false;
1783
1783
  this._isTryingLogin = true;
1784
1784
  return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/appscript",
3
- "version": "1.6.15",
3
+ "version": "1.6.16",
4
4
  "description": "Applications shared TypeScript framework",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -2367,7 +2367,7 @@ export abstract class CoreApp<
2367
2367
  */
2368
2368
  async tryLogin(data?: AppTryLoginParams) {
2369
2369
  // Check status
2370
- if (this._isTryingLogin) return false;
2370
+ if (this._isTryingLogin || this.deviceId === "") return false;
2371
2371
  this._isTryingLogin = true;
2372
2372
 
2373
2373
  return true;