@openfort/openfort-js 0.7.22 → 0.7.23

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.22';
5181
+ const VERSION = '0.7.23';
5182
5182
 
5183
5183
  var Event;
5184
5184
  (function (Event) {
@@ -5359,6 +5359,7 @@ const sessionKeyStorageKey = 'openfort.session_key';
5359
5359
  const signerTypeStorageKey = 'openfort.signer_type';
5360
5360
  const chainIDStorageKey = 'openfort.chain_id';
5361
5361
  const jwksStorageKey = 'openfort.jwk';
5362
+ const deviceIDStorageKey = 'openfort.device_id';
5362
5363
  const accountTypeStorageKey = 'openfort.account_type';
5363
5364
  const shieldAuthTypeStorageKey = 'openfort.shield_auth_type';
5364
5365
  const shieldAuthTokenStorageKey = 'openfort.shield_auth_token';
@@ -5538,12 +5539,17 @@ class InstanceManager {
5538
5539
  }
5539
5540
  setDeviceID(deviceID) {
5540
5541
  this.deviceID = deviceID;
5542
+ this.persistentStorage.save(deviceIDStorageKey, deviceID);
5541
5543
  }
5542
5544
  getDeviceID() {
5545
+ if (!this.deviceID) {
5546
+ this.deviceID = this.persistentStorage.get(deviceIDStorageKey);
5547
+ }
5543
5548
  return this.deviceID;
5544
5549
  }
5545
5550
  removeDeviceID() {
5546
5551
  this.deviceID = null;
5552
+ this.persistentStorage.remove(deviceIDStorageKey);
5547
5553
  }
5548
5554
  setChainID(chainId) {
5549
5555
  this.chainId = chainId;
package/dist/index.js CHANGED
@@ -5155,7 +5155,7 @@ class AuthManager {
5155
5155
  }
5156
5156
  }
5157
5157
 
5158
- const VERSION = '0.7.22';
5158
+ const VERSION = '0.7.23';
5159
5159
 
5160
5160
  var Event;
5161
5161
  (function (Event) {
@@ -5336,6 +5336,7 @@ const sessionKeyStorageKey = 'openfort.session_key';
5336
5336
  const signerTypeStorageKey = 'openfort.signer_type';
5337
5337
  const chainIDStorageKey = 'openfort.chain_id';
5338
5338
  const jwksStorageKey = 'openfort.jwk';
5339
+ const deviceIDStorageKey = 'openfort.device_id';
5339
5340
  const accountTypeStorageKey = 'openfort.account_type';
5340
5341
  const shieldAuthTypeStorageKey = 'openfort.shield_auth_type';
5341
5342
  const shieldAuthTokenStorageKey = 'openfort.shield_auth_token';
@@ -5515,12 +5516,17 @@ class InstanceManager {
5515
5516
  }
5516
5517
  setDeviceID(deviceID) {
5517
5518
  this.deviceID = deviceID;
5519
+ this.persistentStorage.save(deviceIDStorageKey, deviceID);
5518
5520
  }
5519
5521
  getDeviceID() {
5522
+ if (!this.deviceID) {
5523
+ this.deviceID = this.persistentStorage.get(deviceIDStorageKey);
5524
+ }
5520
5525
  return this.deviceID;
5521
5526
  }
5522
5527
  removeDeviceID() {
5523
5528
  this.deviceID = null;
5529
+ this.persistentStorage.remove(deviceIDStorageKey);
5524
5530
  }
5525
5531
  setChainID(chainId) {
5526
5532
  this.chainId = chainId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfort/openfort-js",
3
- "version": "0.7.22",
3
+ "version": "0.7.23",
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",