@toruslabs/ethereum-controllers 5.3.5 → 5.3.7
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/ethereumControllers.cjs.js +2 -1
- package/dist/ethereumControllers.cjs.js.map +1 -1
- package/dist/ethereumControllers.esm.js +2 -1
- package/dist/ethereumControllers.esm.js.map +1 -1
- package/dist/ethereumControllers.umd.min.js +1 -1
- package/dist/ethereumControllers.umd.min.js.map +1 -1
- package/package.json +5 -5
- package/src/Preferences/PreferencesController.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toruslabs/ethereum-controllers",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.7",
|
|
4
4
|
"homepage": "https://github.com/torusresearch/controllers#readme",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/ethereumControllers.cjs.js",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"@ethereumjs/util": "^9.0.1",
|
|
25
25
|
"@metamask/eth-sig-util": "^7.0.1",
|
|
26
26
|
"@metamask/rpc-errors": "^6.1.0",
|
|
27
|
-
"@toruslabs/base-controllers": "^5.3.
|
|
27
|
+
"@toruslabs/base-controllers": "^5.3.7",
|
|
28
28
|
"@toruslabs/http-helpers": "^6.0.0",
|
|
29
|
-
"@toruslabs/openlogin-jrpc": "^6.2.
|
|
29
|
+
"@toruslabs/openlogin-jrpc": "^6.2.9",
|
|
30
30
|
"async-mutex": "^0.4.1",
|
|
31
31
|
"bignumber.js": "^9.1.2",
|
|
32
32
|
"bn.js": "^5.2.1",
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"access": "public"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "c2fcca4be5d467dc40dd9aa6ba9b9c7c344300a1",
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@nomicfoundation/hardhat-toolbox": "^4.0.0",
|
|
70
|
-
"hardhat": "^2.19.
|
|
70
|
+
"hardhat": "^2.19.5"
|
|
71
71
|
}
|
|
72
72
|
}
|
|
@@ -87,7 +87,7 @@ export default class PreferencesController
|
|
|
87
87
|
|
|
88
88
|
public async initPreferences(params: InitPreferencesParams): Promise<void> {
|
|
89
89
|
const { address, jwtToken, calledFromEmbed, userInfo, rehydrate, locale = "en-US", type, signatures, web3AuthClientId, web3AuthNetwork } = params;
|
|
90
|
-
await super.init({ address, userInfo, idToken: jwtToken, type, metadata: { email: userInfo.email, signatures } });
|
|
90
|
+
await super.init({ address, userInfo, idToken: jwtToken, type, metadata: { email: userInfo.email, signatures, network: web3AuthNetwork } });
|
|
91
91
|
const { aggregateVerifier, verifier, verifierId } = userInfo || {};
|
|
92
92
|
const userExists = await this.sync(address);
|
|
93
93
|
if (!userExists) {
|