@dynamic-labs/iframe-setup 4.25.0 → 4.25.1
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 +14 -0
- package/README.md +28 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.25.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.25.0...v4.25.1) (2025-07-18)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add passkey sign in react hook ([#9188](https://github.com/dynamic-labs/dynamic-auth/issues/9188)) ([9d36886](https://github.com/dynamic-labs/dynamic-auth/commit/9d368860ca097777addf5e6f7e57c039cfbbb503))
|
|
8
|
+
* add support for social redirect with iframe-setup ([#9193](https://github.com/dynamic-labs/dynamic-auth/issues/9193)) ([fdfb321](https://github.com/dynamic-labs/dynamic-auth/commit/fdfb321220185d56d061342782754ad72e4b404e))
|
|
9
|
+
* update Argent wallet names to Ready branding ([#9142](https://github.com/dynamic-labs/dynamic-auth/issues/9142)) ([194e4cf](https://github.com/dynamic-labs/dynamic-auth/commit/194e4cf68ede58e2d38c6c720c01428b4e79cdf3))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* show hcaptcha for email and sms headless ([#9187](https://github.com/dynamic-labs/dynamic-auth/issues/9187)) ([9fa0860](https://github.com/dynamic-labs/dynamic-auth/commit/9fa086015196ff2c043d88e23f029964ddee92ab))
|
|
15
|
+
|
|
2
16
|
## [4.25.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.24.0...v4.25.0) (2025-07-17)
|
|
3
17
|
|
|
4
18
|
|
package/README.md
CHANGED
|
@@ -68,6 +68,34 @@ const App = () => {
|
|
|
68
68
|
|
|
69
69
|
Once both steps are completed, the Dynamic SDK will be fully operational within your iframe environment.
|
|
70
70
|
|
|
71
|
+
## Enabling Social Redirect
|
|
72
|
+
|
|
73
|
+
To enable social redirect functionality within your iframe application, you need to configure the `redirectUrl` setting in your `DynamicContextProvider`.
|
|
74
|
+
|
|
75
|
+
```tsx
|
|
76
|
+
import { DynamicContextProvider } from '@dynamic-labs/sdk-react-core';
|
|
77
|
+
import { PlatformService } from '@dynamic-labs/utils';
|
|
78
|
+
import { setupInsideIframe } from '@dynamic-labs/utils';
|
|
79
|
+
|
|
80
|
+
// Initialize as early as possible in your iframe application
|
|
81
|
+
setupInsideIframe();
|
|
82
|
+
|
|
83
|
+
const App = () => {
|
|
84
|
+
return (
|
|
85
|
+
<DynamicContextProvider
|
|
86
|
+
settings={{
|
|
87
|
+
redirectUrl: PlatformService.getUrl().toString(),
|
|
88
|
+
// other settings
|
|
89
|
+
}}
|
|
90
|
+
>
|
|
91
|
+
{/* Your application */}
|
|
92
|
+
</DynamicContextProvider>
|
|
93
|
+
);
|
|
94
|
+
};
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
This configuration ensures that after social authentication, users are properly redirected back to your application and not the iframe URL.
|
|
98
|
+
|
|
71
99
|
---
|
|
72
100
|
|
|
73
101
|
## Alternative Implementation
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/iframe-setup",
|
|
3
|
-
"version": "4.25.
|
|
3
|
+
"version": "4.25.1",
|
|
4
4
|
"description": "Collection of utilities to use the Dynamic SDK in an iframe",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dynamic-labs/assert-package-version": "4.25.
|
|
21
|
+
"@dynamic-labs/assert-package-version": "4.25.1"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {}
|
|
24
24
|
}
|