@dynamic-labs/sdk-react-core 0.18.9 → 0.18.10
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/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
|
|
2
|
+
### [0.18.10](https://github.com/dynamic-labs/DynamicAuth/compare/v0.18.9...v0.18.10) (2023-08-25)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* stop calling handleLogOut prematurely ([#3136](https://github.com/dynamic-labs/DynamicAuth/issues/3136)) ([20ac850](https://github.com/dynamic-labs/DynamicAuth/commit/20ac8503264f21ab9f9165e8b61ecfb0de63d635)), closes [#3135](https://github.com/dynamic-labs/DynamicAuth/issues/3135)
|
|
8
|
+
|
|
2
9
|
### [0.18.9](https://github.com/dynamic-labs/DynamicAuth/compare/v0.18.8...v0.18.9) (2023-08-25)
|
|
3
10
|
|
|
4
11
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/sdk-react-core",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.10",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/dynamic-labs/DynamicAuth.git",
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
"formik": "2.2.9",
|
|
17
17
|
"qrcode": "1.5.1",
|
|
18
18
|
"ethers": "5.7.2",
|
|
19
|
-
"@dynamic-labs/logger": "0.18.
|
|
20
|
-
"@dynamic-labs/multi-wallet": "0.18.
|
|
21
|
-
"@dynamic-labs/rpc-providers": "0.18.
|
|
22
|
-
"@dynamic-labs/types": "0.18.
|
|
23
|
-
"@dynamic-labs/utils": "0.18.
|
|
24
|
-
"@dynamic-labs/wallet-book": "0.18.
|
|
25
|
-
"@dynamic-labs/wallet-connector-core": "0.18.
|
|
19
|
+
"@dynamic-labs/logger": "0.18.10",
|
|
20
|
+
"@dynamic-labs/multi-wallet": "0.18.10",
|
|
21
|
+
"@dynamic-labs/rpc-providers": "0.18.10",
|
|
22
|
+
"@dynamic-labs/types": "0.18.10",
|
|
23
|
+
"@dynamic-labs/utils": "0.18.10",
|
|
24
|
+
"@dynamic-labs/wallet-book": "0.18.10",
|
|
25
|
+
"@dynamic-labs/wallet-connector-core": "0.18.10",
|
|
26
26
|
"eventemitter3": "5.0.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
@@ -91,12 +91,12 @@ const useSyncPrimaryWallet = ({ connectWallet, computeConnectedStateForWallets,
|
|
|
91
91
|
computeConnectedStateForWallets();
|
|
92
92
|
return;
|
|
93
93
|
}
|
|
94
|
-
if (!primaryWallet.connector.isInstalledOnBrowser()) {
|
|
95
|
-
handleLogOut();
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
94
|
// user is logged in (has valid jwt), but no wallet is connected
|
|
99
95
|
if (isAuthenticated && e.code === errors.MISSING_ADDRESS_ERROR) {
|
|
96
|
+
if (!primaryWallet.connector.isInstalledOnBrowser()) {
|
|
97
|
+
handleLogOut();
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
100
|
setShowAuthFlow(true);
|
|
101
101
|
setView('wallet-locked-view');
|
|
102
102
|
}
|
|
@@ -87,12 +87,12 @@ const useSyncPrimaryWallet = ({ connectWallet, computeConnectedStateForWallets,
|
|
|
87
87
|
computeConnectedStateForWallets();
|
|
88
88
|
return;
|
|
89
89
|
}
|
|
90
|
-
if (!primaryWallet.connector.isInstalledOnBrowser()) {
|
|
91
|
-
handleLogOut();
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
90
|
// user is logged in (has valid jwt), but no wallet is connected
|
|
95
91
|
if (isAuthenticated && e.code === MISSING_ADDRESS_ERROR) {
|
|
92
|
+
if (!primaryWallet.connector.isInstalledOnBrowser()) {
|
|
93
|
+
handleLogOut();
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
96
|
setShowAuthFlow(true);
|
|
97
97
|
setView('wallet-locked-view');
|
|
98
98
|
}
|