@dynamic-labs/sdk-react-core 2.0.0-alpha.14 → 2.0.0-alpha.16
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,18 @@
|
|
|
1
1
|
|
|
2
|
+
## [2.0.0-alpha.16](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.15...v2.0.0-alpha.16) (2024-03-15)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add bundlerProvider prop to allow AA customers to select a provider ([#4975](https://github.com/dynamic-labs/DynamicAuth/issues/4975)) ([1870cef](https://github.com/dynamic-labs/DynamicAuth/commit/1870cef4f50944a86226d10f09ef7bf6595f3c95))
|
|
8
|
+
|
|
9
|
+
## [2.0.0-alpha.15](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.14...v2.0.0-alpha.15) (2024-03-15)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* Add support for mobile farcaster signin ([#4973](https://github.com/dynamic-labs/DynamicAuth/issues/4973)) ([98261a4](https://github.com/dynamic-labs/DynamicAuth/commit/98261a47bd319cd93b36f5cdd6a9be0064887686))
|
|
15
|
+
|
|
2
16
|
## [2.0.0-alpha.14](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.13...v2.0.0-alpha.14) (2024-03-14)
|
|
3
17
|
|
|
4
18
|
|
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": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.16",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/dynamic-labs/DynamicAuth.git",
|
|
@@ -17,18 +17,18 @@
|
|
|
17
17
|
"react-i18next": "13.5.0",
|
|
18
18
|
"yup": "0.32.11",
|
|
19
19
|
"react-international-phone": "4.2.5",
|
|
20
|
-
"@dynamic-labs/ethereum": "2.0.0-alpha.
|
|
21
|
-
"@dynamic-labs/iconic": "2.0.0-alpha.
|
|
22
|
-
"@dynamic-labs/logger": "2.0.0-alpha.
|
|
23
|
-
"@dynamic-labs/multi-wallet": "2.0.0-alpha.
|
|
24
|
-
"@dynamic-labs/rpc-provider-ethereum": "2.0.0-alpha.
|
|
25
|
-
"@dynamic-labs/rpc-provider-solana": "2.0.0-alpha.
|
|
26
|
-
"@dynamic-labs/rpc-providers": "2.0.0-alpha.
|
|
27
|
-
"@dynamic-labs/types": "2.0.0-alpha.
|
|
28
|
-
"@dynamic-labs/utils": "2.0.0-alpha.
|
|
29
|
-
"@dynamic-labs/viem-utils": "2.0.0-alpha.
|
|
30
|
-
"@dynamic-labs/wallet-book": "2.0.0-alpha.
|
|
31
|
-
"@dynamic-labs/wallet-connector-core": "2.0.0-alpha.
|
|
20
|
+
"@dynamic-labs/ethereum": "2.0.0-alpha.16",
|
|
21
|
+
"@dynamic-labs/iconic": "2.0.0-alpha.16",
|
|
22
|
+
"@dynamic-labs/logger": "2.0.0-alpha.16",
|
|
23
|
+
"@dynamic-labs/multi-wallet": "2.0.0-alpha.16",
|
|
24
|
+
"@dynamic-labs/rpc-provider-ethereum": "2.0.0-alpha.16",
|
|
25
|
+
"@dynamic-labs/rpc-provider-solana": "2.0.0-alpha.16",
|
|
26
|
+
"@dynamic-labs/rpc-providers": "2.0.0-alpha.16",
|
|
27
|
+
"@dynamic-labs/types": "2.0.0-alpha.16",
|
|
28
|
+
"@dynamic-labs/utils": "2.0.0-alpha.16",
|
|
29
|
+
"@dynamic-labs/viem-utils": "2.0.0-alpha.16",
|
|
30
|
+
"@dynamic-labs/wallet-book": "2.0.0-alpha.16",
|
|
31
|
+
"@dynamic-labs/wallet-connector-core": "2.0.0-alpha.16",
|
|
32
32
|
"eventemitter3": "5.0.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
@@ -402,7 +402,13 @@ const useSocialAuth = ({ sessionTimeout, authMode, onSettled, onError, }) => {
|
|
|
402
402
|
handleError(types.SocialOAuthErrorCode.GENERAL_ERROR, "Farcaster didn't return a valid url.");
|
|
403
403
|
return;
|
|
404
404
|
}
|
|
405
|
-
|
|
405
|
+
// If on mobile, we want to redirect to the Warpcast app.
|
|
406
|
+
if (utils.isMobile()) {
|
|
407
|
+
window.location.assign(data.url);
|
|
408
|
+
}
|
|
409
|
+
else {
|
|
410
|
+
setView('farcaster-connect-view', { url: data.url });
|
|
411
|
+
}
|
|
406
412
|
const status = yield farcaster.watchStatus({
|
|
407
413
|
channelToken: data.channelToken,
|
|
408
414
|
});
|
|
@@ -398,7 +398,13 @@ const useSocialAuth = ({ sessionTimeout, authMode, onSettled, onError, }) => {
|
|
|
398
398
|
handleError(SocialOAuthErrorCode.GENERAL_ERROR, "Farcaster didn't return a valid url.");
|
|
399
399
|
return;
|
|
400
400
|
}
|
|
401
|
-
|
|
401
|
+
// If on mobile, we want to redirect to the Warpcast app.
|
|
402
|
+
if (isMobile()) {
|
|
403
|
+
window.location.assign(data.url);
|
|
404
|
+
}
|
|
405
|
+
else {
|
|
406
|
+
setView('farcaster-connect-view', { url: data.url });
|
|
407
|
+
}
|
|
402
408
|
const status = yield watchStatus({
|
|
403
409
|
channelToken: data.channelToken,
|
|
404
410
|
});
|