You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Initialization (React) |`Web3AuthProvider` from `@web3auth/modal-react-hooks` with `config` prop (incl. `web3AuthOptions`, `adapters`). Some might have used class-based init in Context. |`Web3AuthProvider` from `@web3auth/no-modal-react-hooks` with `config` prop (incl. `web3AuthOptions`, `adapters`). |`Web3AuthProvider` from `@web3auth/modal/react`. Pass `initParams` (with `clientId`, `web3AuthNetwork`, etc.) and primary `chainConfig`. |
1049
-
| Modal Display |`web3auth.connect()`| N/A (No Modal UI) |`connect()` (hook from `useWeb3AuthConnect`) triggers modal. Modal UI configured via `modalConfig` / Dashboard. For class-based: `web3auth.connect()`. |
1050
-
| Direct Connection (No UI) | Possible with specific adapter configs (complex) |`web3auth.connectTo(connector, params)`|`web3auth.connectTo(connector, params)` (class) or `connectTo(connector, params)` (hook from `useWeb3AuthConnect`). Simplified params. |
1051
-
| Chain Config (Client) | Optional for standard, required for custom in `chainConfig`| Required `chainConfig` & `privateKeyProvider` in constructor | ⛔️ Removed for standard chains (dashboard-driven). Primary `chainConfig` for React Provider context. Custom chains on dashboard. |
1052
-
| Private Key Provider (Client) | Not typically passed directly for modal UI | Explicit `privateKeyProvider` in constructor | ⛔️ Not needed in constructor for standard chains. |
1053
-
| Adapters (Client) |`OpenLoginAdapter` in `modalConfig`, or `configureAdapter`|`configureAdapter(new AuthAdapter(...))`| ⛔️ Removed. Logins configured on Dashboard. `authConnectionId` used in `connect`/`connectTo`. |
1054
-
| Verifiers (Client) |`verifier`, `verifierSubIdentifier` in adapter/login configs |`verifier`, `verifierSubIdentifier` in adapter/login configs | ⛔️ Removed. Use `authConnectionId` (Auth Connection ID from Dashboard) and `groupedAuthConnectionId` in `connect`/`connect` params. |
1055
-
| React Usage | Class-based or older hooks | Class-based or older hooks | ✅ Hooks only (`useWeb3AuthConnect`, etc.) from `@web3auth/modal/react`. |
1056
-
| MFA Configuration | Via `AuthAdapter` settings | Via `AuthAdapter` settings | ✅ Global `mfaSettings` in SDK init (constructor/Provider options) OR per-connection `mfaLevel` in `connect`/`connectTo` params. |
1057
-
| Smart Accounts | Separate `@web3auth/account-abstraction-provider`| Separate `@web3auth/account-abstraction-provider`| ✅ Dashboard-driven, optional `accountAbstractionConfig` in SDK init. Deprecated provider package. |
1058
-
| SFA Key Retrieval |`useCoreKitKey: true` in constructor options |`useCoreKitKey: true` in constructor options |`useSFAKey: true` in constructor options (non-React) or `initParams` (React). (Breaking change from `useCoreKitKey`) |
1059
-
1060
-
---
1061
-
1062
-
## Verifying Your v10 Integration
1063
-
1064
-
After completing all the migration steps, it's crucial to thoroughly test your application to ensure
1065
-
everything functions as expected. Here's a checklist:
1066
-
1067
-
-**Modal Display & UI (if using modal):** Ensure the Web3Auth Modal displays correctly with your
1068
-
configured login methods.
1069
-
-**Direct Connection Flows (if using `connectTo` for custom UI):** Verify that direct connections
1070
-
to social providers or custom JWT authentications work as expected.
1071
-
-**Login Methods:** Test every social login, email passwordless (if configured via OpenLogin on
1072
-
dashboard), and custom JWT connection method you have configured on the Web3Auth Dashboard.
1073
-
-**Account Consistency:** If you use features like `groupedAuthConnectionId` for account linking,
1074
-
verify that logging in with different methods linked to the same identifier correctly resolves to
1075
-
the same user account and private key.
1076
-
-**Blockchain Provider:** Ensure `web3auth.provider` (for class-based usage) or the provider from
1077
-
React hooks (`useWeb3AuthConnect` or `useWeb3Auth`) is available and correctly initialized for
1078
-
your target chain(s).
1079
-
-**Core Blockchain Operations:**
1080
-
- Fetch user account address.
1081
-
- Fetch account balance.
1082
-
- Sign a message.
1083
-
- Send a simple transaction.
1084
-
-**MFA Functionality:** Test your configured MFA flows (`mfaLevel` and/or `mfaSettings`).
1085
-
-**Smart Accounts (if applicable):**
1086
-
- Verify that the Smart Account is deployed and functions as expected based on your dashboard and
1087
-
client configurations.
1088
-
-**Logout Functionality:** Ensure logout clears the session and provider correctly.
1089
-
-**Session Management:** Test session persistence and restoration.
1090
-
-**Error Handling:** Test common error scenarios.
1091
-
1092
-
---
1093
-
1094
-
## Further Reading
1095
-
1096
-
-[Web3Auth Documentation - PnP Modal SDK v10](https://web3auth.io/docs/sdk/pnp/web/modal) (Link to
1097
-
be updated to final v10 docs page)
1098
-
-[Web3Auth v10 Examples on GitHub](https://github.com/Web3Auth/web3auth-pnp-examples) (Ensure
1099
-
examples are updated for v10)
1100
-
-[Join the Community](https://web3auth.io/community)
0 commit comments