Skip to content

Commit

Permalink
[wip] update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
FSM1 committed Sep 20, 2021
1 parent 9a2c948 commit 04b593b
Show file tree
Hide file tree
Showing 3 changed files with 369 additions and 296 deletions.
8 changes: 4 additions & 4 deletions packages/files-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"@lingui/react": "^3.7.2",
"@material-ui/core": "^4.12.3",
"@sentry/react": "^5.28.0",
"@tkey/default": "3.12.0",
"@tkey/security-questions": "3.12.0",
"@tkey/web-storage": "3.12.0",
"@toruslabs/torus-direct-web-sdk": "4.10.0",
"@tkey/default": "4.3.0",
"@tkey/security-questions": "4.3.0",
"@tkey/web-storage": "4.3.0",
"@toruslabs/torus-direct-web-sdk": "4.15.1",
"@types/filesystem": "^0.0.32",
"@types/uuid": "^8.3.0",
"axios": "0.21.4",
Expand Down
6 changes: 3 additions & 3 deletions packages/files-ui/src/Contexts/ThresholdKeyContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ const ThresholdKeyProvider = ({ children, network = "mainnet", enableLogging = f
await serviceProvider.init({ skipSw: false }).then(() => {
console.log("initialized")
setStatus("initialized")
}).catch(() => "error initializing")
}).catch((e) => console.error("error initializing", e))
}
setTKeySdk(tkey)
}
Expand Down Expand Up @@ -246,7 +246,7 @@ const ThresholdKeyProvider = ({ children, network = "mainnet", enableLogging = f
} else {
setPrivateKey(privKeyString)
}
} catch (error) {
} catch (error: any) {
// Under certain circumstances (approval of login on another device) the metadata
// cached may be stale, resulting in a failure to reconstruct the key. This is
// identified through the nonce. Manually refreshing the metadata cache solves this problem
Expand Down Expand Up @@ -452,7 +452,7 @@ const ThresholdKeyProvider = ({ children, network = "mainnet", enableLogging = f
console.log("privKey", privKey)
} else {
console.log("Existing key")
await TKeySdk.initialize({ input: metadata as ShareStore })
await TKeySdk.initialize({ withShare: metadata as ShareStore })
try {
console.log("Trying to load device share")
const storageModule = TKeySdk.modules[WEB_STORAGE_MODULE_NAME] as WebStorageModule
Expand Down
Loading

0 comments on commit 04b593b

Please sign in to comment.