Skip to content

Audit Embedded Wallets Web SDK docs against @web3auth/modal v11.4.3 - #3081

Closed
yashovardhan wants to merge 2 commits into
mainfrom
claude/embedded-wallet-docs-audit-9c679d
Closed

yashovardhan wants to merge 2 commits into
mainfrom
claude/embedded-wallet-docs-audit-9c679d

Conversation

@yashovardhan

Copy link
Copy Markdown
Member

Description

Audits the Embedded Wallets Web SDK documentation (JavaScript, React, Vue) against the latest SDK release, @web3auth/modal v11.4.3 (Web3Auth/web3auth-web master), and the official examples in Web3Auth/web3auth-examples. Every change is backed by an SDK source line or an official example.

Scope: embedded-wallets/sdk/{js,react,vue,_common}, migration-guides/web.mdx, web content in features/, dashboard/, troubleshooting/, connect-blockchain/, the web quickstart builders, and web SDK tutorials.

Accuracy fixes

  • Samples that did not compile:
    • useWalletServicesPlugin (React/Vue) documented fields that don't exist. It returns { plugin, ready, connecting }.
    • JS Wallet Services pages called web3auth.showCheckout() and similar methods on web3auth. They now get the plugin with getPlugin(EVM_PLUGINS.WALLET_SERVICES).
    • Solana pages used the removed TransactionOrVersionedTransaction type. They now use Transaction from @solana/kit.
    • JS samples called getViewChain(), which isn't a real function.
    • Several pages imported type names that don't exist.
  • Removed or renamed options and properties:
    • storageType is now storage plus cookieOptions.
    • eipStandard is now smartAccountEipStandard.
    • connectedConnectorName is now primaryConnectorName.
    • The Wallet Services plugin name is 'wallet-services'.
    • getUserInfo now shows the v11 fields (authConnectionId, userId, authConnection, linkedAccounts).
    • extraLoginOptions.verifierIdField is ignored by the SDK. It's now userIdField, matching the official examples.
  • Signatures and return types:
    • switchChain takes { chainId }.
    • Vue composables return refs.
    • useWeb3Auth was missing fields (chainId, chainNamespace, isAuthorized, isMFAEnabled, setIsMFAEnabled).
    • Solana hooks now use the correct v11 return shapes.
  • Chains:
    • Solana chain IDs are 0x65–0x67, not 0x1–0x3.
    • The XRPL setup now uses @web3auth/modal/providers/xrpl-provider, as the official example does.
    • The NEAR key hex conversion is fixed.
  • Migration guide:
    • Removed two breaking changes that never happened.
    • Corrected the Solana hook path claim: these paths were already in use in v10.
    • Added the real rename of getIdentityToken to getAuthTokenInfo, and other missing v10→v11 changes.
    • Added a section on changes from v11.1 to v11.4.3.
  • Multi-wallet linking:
    • linkAccount takes connectorName, and the docs now show its real return shape.
    • Removed the accountLinking.serverUrl option, which doesn't exist.
  • Troubleshooting: updated the error code tables, and rewrote the JWT errors page from v9 code to v11.
  • Quickstart builder:
    • Removed the Angular ethersRPC.ts tab; that file was deleted from the examples repo.
    • Added Next.js-specific provider and config steps (SSR, components/provider.tsx).
  • Tutorials: pnp-no-modal-multichain now uses connection?.ethereumProvider and links to the current example repo.

New pages

  • React hooks and Vue composables: useChain, useWallets, useFunding, useReceive, useLinkAccount, useSwitchAccount (from @web3auth/modal/account-linking/*), useX402Fetch (from @web3auth/modal/x402/*).
  • Vue: useSolanaClient.
  • All are added to ew-sidebar.js.

Needs review or follow-up (not changed in this PR)

  • Tutorials that need rewrites for v11:
    • sending-gasless-transaction.mdx and erc20-paymaster.mdx use packages from v8/v9 that no longer exist.
    • integrate-sns.mdx and integrate-solana-pay.mdx read useSolanaWallet fields that were removed.
  • Defaults to confirm with the SDK team:
    • sessionTime: 1 day or 7 days.
    • MFA DEFAULT level: every 3rd login or every 10th.
    • enableKeyExport default.
    • useSignTransaction return value: the code returns the signature, but its comment says the signed transaction.
    • The canonical XRPL testnet chain ID.
  • Still undocumented: JS account-linking methods, uiConfig fields, and the Base Account connector.
  • Old content to clean up: chain-config tabs left over from v8 on 12 connect-blockchain/other/* pages, and five _common partials that no page imports.

Issue(s) fixed

N/A

Preview

npm run build passes locally with no broken links or anchors in the changed pages.

Checklist

  • If this PR updates or adds documentation content that changes or adds technical meaning, it has received an approval from an engineer or DevRel from the relevant team.
  • If this PR updates or adds documentation content, it has received an approval from a technical writer.

Verify JS, React, and Vue SDK pages, the web migration guide, feature,
dashboard, troubleshooting, connect-blockchain, quickstart, and tutorial
content against the v11.4.3 SDK source and the official examples.

- Fix samples that would not compile (Wallet Services plugin usage,
  removed Solana types, getViewChain, wrong type imports)
- Replace removed or renamed options and properties (storageType,
  eipStandard, connectedConnectorName, getUserInfo v9 fields,
  verifierIdField)
- Correct hook/composable signatures and return fields; Vue refs
- Fix Solana chain IDs (0x65-0x67) and XRPL provider setup
- Correct migration guide breaking changes; add v11.1-v11.4 changes
- Fix multi-wallet linking API usage
- Add React and Vue pages for useChain, useWallets, useFunding,
  useReceive, useLinkAccount, useSwitchAccount, useX402Fetch, and Vue
  useSolanaClient
- Fix Angular and Next.js quickstart builder steps
@vercel

vercel Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
metamask-docs Ready Ready Preview Nov 9, 2026 5:17pm UTC

Request Review

- Remove nonexistent MFA_LEVELS.DEFAULT from React and Vue MFA pages
- Vue useSignTransaction returns the base58 signature
- sessionTime falls back to the dashboard value, then 30 days
- Rewrite Solana Pay tutorial for v11 useSolanaWallet rpc and the
  @solana/kit-based @solana/pay 1.x API, with SolanaProvider
- Add WalletOperationsError, WalletProviderError, and
  AccountLinkingError codes
- Add groupedAuthConnectionId and account_abstraction to linked
  account fields; clarify useWallets sync behavior
- getUserInfo returns { linkedAccounts: [] } for external wallets
- XRPL testnet chain ID 0x6 and wsTarget labels
- initialAuthenticationMode connect-only default was v10.10+
@yashovardhan

Copy link
Copy Markdown
Member Author

Superseded by #3086, which combines this branch with the other Embedded Wallets SDK docs updates and the rebrand into one PR for review. No further changes should land here.

This branch was successfully deployed

1 active deployment
Preview — 05c31544 Deployed Nov 9, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant