@openfort/openfort-js 0.7.19 → 0.7.20

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.
package/dist/index.cjs CHANGED
@@ -5178,7 +5178,7 @@ class AuthManager {
5178
5178
  }
5179
5179
  }
5180
5180
 
5181
- const VERSION = '0.7.19';
5181
+ const VERSION = '0.7.20';
5182
5182
 
5183
5183
  var Event;
5184
5184
  (function (Event) {
@@ -5372,6 +5372,7 @@ class InstanceManager {
5372
5372
  sessionKey = null;
5373
5373
  deviceID = null;
5374
5374
  shieldAuthType = null;
5375
+ authShieldToken = null;
5375
5376
  chainId = null;
5376
5377
  accountAddress = null;
5377
5378
  accountType = null;
@@ -5591,37 +5592,37 @@ class InstanceManager {
5591
5592
  this.accountType = null;
5592
5593
  this.persistentStorage.remove(accountTypeStorageKey);
5593
5594
  }
5594
- setShieldAuthType(accountType) {
5595
- this.accountType = accountType;
5596
- this.persistentStorage.save(shieldAuthTypeStorageKey, accountType);
5595
+ setShieldAuthType(shieldAuthType) {
5596
+ this.shieldAuthType = shieldAuthType;
5597
+ this.persistentStorage.save(shieldAuthTypeStorageKey, shieldAuthType);
5597
5598
  }
5598
5599
  getShieldAuthType() {
5599
- if (!this.accountType) {
5600
- this.accountType = this.persistentStorage.get(shieldAuthTypeStorageKey);
5601
- if (this.accountType === null) {
5600
+ if (!this.shieldAuthType) {
5601
+ this.shieldAuthType = this.persistentStorage.get(shieldAuthTypeStorageKey);
5602
+ if (this.shieldAuthType === null) {
5602
5603
  // TODO: remove, this is for backward compatibility
5603
5604
  this.setShieldAuthType(exports.ShieldAuthType.OPENFORT);
5604
- this.accountType = exports.ShieldAuthType.OPENFORT;
5605
+ this.shieldAuthType = exports.ShieldAuthType.OPENFORT;
5605
5606
  }
5606
5607
  }
5607
- return this.accountType;
5608
+ return this.shieldAuthType;
5608
5609
  }
5609
5610
  removeShieldAuthType() {
5610
- this.accountType = null;
5611
+ this.shieldAuthType = null;
5611
5612
  this.persistentStorage.remove(shieldAuthTypeStorageKey);
5612
5613
  }
5613
- setShieldAuthToken(accountType) {
5614
- this.accountType = accountType;
5615
- this.persistentStorage.save(shieldAuthTokenStorageKey, accountType);
5614
+ setShieldAuthToken(authShieldToken) {
5615
+ this.authShieldToken = authShieldToken;
5616
+ this.persistentStorage.save(shieldAuthTokenStorageKey, authShieldToken);
5616
5617
  }
5617
5618
  getShieldAuthToken() {
5618
- if (!this.accountType) {
5619
- this.accountType = this.persistentStorage.get(shieldAuthTokenStorageKey);
5619
+ if (!this.authShieldToken) {
5620
+ this.authShieldToken = this.persistentStorage.get(shieldAuthTokenStorageKey);
5620
5621
  }
5621
- return this.accountType;
5622
+ return this.authShieldToken;
5622
5623
  }
5623
5624
  removeShieldAuthToken() {
5624
- this.accountType = null;
5625
+ this.authShieldToken = null;
5625
5626
  this.persistentStorage.remove(shieldAuthTokenStorageKey);
5626
5627
  }
5627
5628
  }
package/dist/index.js CHANGED
@@ -5155,7 +5155,7 @@ class AuthManager {
5155
5155
  }
5156
5156
  }
5157
5157
 
5158
- const VERSION = '0.7.19';
5158
+ const VERSION = '0.7.20';
5159
5159
 
5160
5160
  var Event;
5161
5161
  (function (Event) {
@@ -5349,6 +5349,7 @@ class InstanceManager {
5349
5349
  sessionKey = null;
5350
5350
  deviceID = null;
5351
5351
  shieldAuthType = null;
5352
+ authShieldToken = null;
5352
5353
  chainId = null;
5353
5354
  accountAddress = null;
5354
5355
  accountType = null;
@@ -5568,37 +5569,37 @@ class InstanceManager {
5568
5569
  this.accountType = null;
5569
5570
  this.persistentStorage.remove(accountTypeStorageKey);
5570
5571
  }
5571
- setShieldAuthType(accountType) {
5572
- this.accountType = accountType;
5573
- this.persistentStorage.save(shieldAuthTypeStorageKey, accountType);
5572
+ setShieldAuthType(shieldAuthType) {
5573
+ this.shieldAuthType = shieldAuthType;
5574
+ this.persistentStorage.save(shieldAuthTypeStorageKey, shieldAuthType);
5574
5575
  }
5575
5576
  getShieldAuthType() {
5576
- if (!this.accountType) {
5577
- this.accountType = this.persistentStorage.get(shieldAuthTypeStorageKey);
5578
- if (this.accountType === null) {
5577
+ if (!this.shieldAuthType) {
5578
+ this.shieldAuthType = this.persistentStorage.get(shieldAuthTypeStorageKey);
5579
+ if (this.shieldAuthType === null) {
5579
5580
  // TODO: remove, this is for backward compatibility
5580
5581
  this.setShieldAuthType(ShieldAuthType.OPENFORT);
5581
- this.accountType = ShieldAuthType.OPENFORT;
5582
+ this.shieldAuthType = ShieldAuthType.OPENFORT;
5582
5583
  }
5583
5584
  }
5584
- return this.accountType;
5585
+ return this.shieldAuthType;
5585
5586
  }
5586
5587
  removeShieldAuthType() {
5587
- this.accountType = null;
5588
+ this.shieldAuthType = null;
5588
5589
  this.persistentStorage.remove(shieldAuthTypeStorageKey);
5589
5590
  }
5590
- setShieldAuthToken(accountType) {
5591
- this.accountType = accountType;
5592
- this.persistentStorage.save(shieldAuthTokenStorageKey, accountType);
5591
+ setShieldAuthToken(authShieldToken) {
5592
+ this.authShieldToken = authShieldToken;
5593
+ this.persistentStorage.save(shieldAuthTokenStorageKey, authShieldToken);
5593
5594
  }
5594
5595
  getShieldAuthToken() {
5595
- if (!this.accountType) {
5596
- this.accountType = this.persistentStorage.get(shieldAuthTokenStorageKey);
5596
+ if (!this.authShieldToken) {
5597
+ this.authShieldToken = this.persistentStorage.get(shieldAuthTokenStorageKey);
5597
5598
  }
5598
- return this.accountType;
5599
+ return this.authShieldToken;
5599
5600
  }
5600
5601
  removeShieldAuthToken() {
5601
- this.accountType = null;
5602
+ this.authShieldToken = null;
5602
5603
  this.persistentStorage.remove(shieldAuthTokenStorageKey);
5603
5604
  }
5604
5605
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfort/openfort-js",
3
- "version": "0.7.19",
3
+ "version": "0.7.20",
4
4
  "author": "Openfort (https://www.openfort.xyz)",
5
5
  "bugs": "https://github.com/openfort-xyz/openfort-js/issues",
6
6
  "repository": "openfort-xyz/openfort-js.git",