Skip to content

Commit

Permalink
Merge pull request #46 from openfort-xyz/chore/no-cache-device-id
Browse files Browse the repository at this point in the history
chore: do not cache device id
  • Loading branch information
gllm-dev authored Jul 18, 2024
2 parents 0c8a993 + 005f84f commit 6021e0c
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 13 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.7.21] - 2024-07-16
## [0.7.22] - 2024-07-18
### Updated
- Do not cache device id

## [0.7.21] - 2024-07-18
### Fixed
- Handle missing project entropy

Expand Down
2 changes: 1 addition & 1 deletion examples/apps/auth-sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"dependencies": {
"@heroicons/react": "^2.0.13",
"@openfort/openfort-js": "0.7.21",
"@openfort/openfort-js": "0.7.22",
"@openfort/openfort-node": "^0.6.62",
"@radix-ui/react-toast": "^1.1.2",
"@rainbow-me/rainbowkit": "^2.1.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-bridge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@openfort/platform-bridge",
"version": "0.0.0",
"dependencies": {
"@openfort/openfort-js": "0.7.21",
"@openfort/openfort-js": "0.7.22",
"ethers": "^5.7.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openfort/openfort-js",
"version": "0.7.21",
"version": "0.7.22",
"author": "Openfort (https://www.openfort.xyz)",
"bugs": "https://github.com/openfort-xyz/openfort-js/issues",
"repository": "openfort-xyz/openfort-js.git",
Expand Down
6 changes: 0 additions & 6 deletions sdk/src/instanceManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { SDKConfiguration } from './config';
import { SignerType } from './signer/signer';
import {
authTokenStorageKey,
deviceIDStorageKey,
accountTypeStorageKey,
accountAddressStorageKey,
chainIDStorageKey,
Expand Down Expand Up @@ -261,19 +260,14 @@ export default class InstanceManager {

public setDeviceID(deviceID: string): void {
this.deviceID = deviceID;
this.persistentStorage.save(deviceIDStorageKey, deviceID);
}

public getDeviceID(): string | null {
if (!this.deviceID) {
this.deviceID = this.persistentStorage.get(deviceIDStorageKey);
}
return this.deviceID;
}

public removeDeviceID(): void {
this.deviceID = null;
this.persistentStorage.remove(deviceIDStorageKey);
}

public setChainID(chainId: string): void {
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const VERSION = '0.7.21';
export const VERSION = '0.7.22';
export const PACKAGE = '@openfort/openfort-js';
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1403,7 +1403,7 @@ __metadata:
languageName: unknown
linkType: soft

"@openfort/[email protected].21, @openfort/openfort-js@workspace:sdk":
"@openfort/[email protected].22, @openfort/openfort-js@workspace:sdk":
version: 0.0.0-use.local
resolution: "@openfort/openfort-js@workspace:sdk"
dependencies:
Expand Down Expand Up @@ -1458,7 +1458,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@openfort/platform-bridge@workspace:packages/platform-bridge"
dependencies:
"@openfort/openfort-js": 0.7.21
"@openfort/openfort-js": 0.7.22
eslint: ^8.40.0
ethers: ^5.7.0
parcel: ^2.8.3
Expand Down

0 comments on commit 6021e0c

Please sign in to comment.