Repository navigation
Commit d99ac45
authored
Embedded Wallets: combined SDK docs updates (iOS, Android, Web, Flutter, React Native) and rebrand (#3086)
* Rebrand Embedded Wallets to Web3Auth by MetaMask, Embedded Wallet SDK
Replace the "MetaMask Embedded Wallets" and "MetaMask Embedded Wallet(s) SDK"
names with "Web3Auth by MetaMask, Embedded Wallet SDK" across the docs.
- Use the full name on first mention in each page body, in page
descriptions, and on standalone cards; use "Embedded Wallet SDK" in
headings, titles, sidebar labels, and later mentions.
- Name platform SDKs "Embedded Wallet SDK for <platform>".
- Remove "(formerly/previously Web3Auth)" and "formerly Web3Auth Plug and
Play" wording.
- Normalize "Embedded Wallets SDK" to "Embedded Wallet SDK".
- Update the Embedded Wallets product rule and terminology table.
Package names, code identifiers, URLs, and the "Embedded Wallets" nav and
dashboard labels are unchanged.
* Update Embedded Wallets iOS SDK docs for v13
- Bump install instructions to web3auth-swift-sdk 13.0.0.
- Rewrite the iOS migration guide to cover v6 through v12 to v13, with a new v13 section and a corrected v12 rename table.
- Fix Swift snippets that didn't compile because labeled arguments were out of declaration order (Web3AuthOptions, Chains, AuthConnectionConfig, LoginParams).
- Document all Web3AuthOptions parameters, the dashboard-driven sessionTime default, and chain precedence for Wallet Services.
- Remove MFALevel.DEFAULT and unsupported ChainNamespace and ExtraLoginOptions values.
- Correct enableMFA and manageMFA guidance for SFA users.
- Add getIdentityToken, getAccessToken, refreshSession, and getUserInfoAsync docs.
- Add tncLink, privacyPolicy, enableKeyExport, and autoApprove options.
- Fix iOS quickstart step highlights, connect-blockchain snippets, and the examples list.
* Audit Embedded Wallets Web SDK docs against @web3auth/modal v11.4.3
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
* Update Flutter SDK docs for web3auth_flutter v8
Align the Embedded Wallets Flutter documentation with web3auth_flutter 8.0.0
(Auth v11 / Wallet Services v6, Android native 11.0.0, iOS native 13.0.0).
- Rewrite the Flutter migration guide for v8 (covers v3 through v7).
- Document Swift Package Manager requirement for iOS.
- Remove MFALevel.DEFAULT and fix the MFA settings example.
- Make sessionTime optional (dashboard value by default).
- Wrap initialize() in try/catch across samples.
- Complete the Web3AuthOptions, WhiteLabelData, WalletServicesConfig,
Chains, LoginParams, and Web3AuthResponse references.
- Add usage pages for getAccessToken, getIdentityToken, refreshSession,
and getWeb3AuthResponse; document getUserInfoAsync.
- Update Flutter snippets in SocialLoginExamples and
PasswordlessLoginExamples from the pre-v7 login API to connectTo.
- Update the Flutter quickstart, tutorial, and Solana page.
* Update Embedded Wallets Android SDK docs for v11
Align the Android SDK docs with web3auth-android-sdk 11.0.1.
- Bump the dependency to 11.0.1 and minSdk to 26.
- Retarget the migration guide to v11 (MFALevel.DEFAULT removal, v11/v6
service URLs, initialize() session restore, sessionTime and
WalletServicesConfig defaults, new session APIs).
- Add usage pages for getAccessToken/getIdentityToken and refreshSession,
and document getUserInfoAsync.
- Fix initialize(), getPrivateKey(), and logout() session behavior.
- Fix enableMFA/manageMFA guidance (no idToken; not available for SFA).
- Fix custom authentication examples (required clientId and
authConnectionId, EmailFlowType values, swapped grouped connection IDs,
jwtParameters).
- Document SFA limitations and run SFA connectTo off the main thread.
- Update Web3AuthOptions, WhiteLabelData, and WalletServicesConfig fields.
- Fix the Solana, Firebase, tutorial, and quickstart Android content.
* Update Embedded Wallets React Native docs for SDK v10
- Rewrite the React Native SDK pages for @web3auth/react-native-sdk 10.0.0:
useWeb3Auth().connection (ethereumProvider, solanaWallet) replaces
provider/signer; connectTo resolves Connection | null.
- Add hook pages for useAccessToken, useAuthTokenInfo, and
useRefreshSession; mark useIdentityToken deprecated.
- Add Ethereum hooks (Wagmi) and Solana hooks pages, including the
polyfills and @web3auth/auth shim that Solana needs on 10.0.0.
- Fix connectTo parameters, web3AuthOptions, MFA levels, whitelabel
fields, and Solana chain IDs (0x65/0x66/0x67).
- Require react-native-quick-crypto 1.x and document the Gradle 9
jcenter() workaround for @toruslabs/react-native-web-browser.
- Rewrite the React Native migration guide to target v10 (from v3-v9).
- Update EVM and Solana connect-blockchain pages, Metro troubleshooting,
the quickstart builder, and Auth0/Firebase React Native snippets.
- Remove unused v8 account abstraction partials.
* Clarify Android session time defaults to 30 days
* Fix iOS v13 docs gaps found in review
- Restore ChainNamespace .solana and .other; note Wallet Services are EVM only.
- Note that the dashboard confirmation modal setting overrides confirmationStrategy.
- Document that v13.0.0 ignores flow_type and always uses the OTP email flow.
- Describe the default session time as 30 days from the dashboard, and correct the older-version defaults in the migration table.
- Note that SFA users get no session tokens or Ed25519 key.
- Warn that logout deletes all of the app's generic password Keychain items.
- Reword the v13 MFA migration note: SFA detection is new, connection reuse isn't.
- Clarify chain selection, WhiteLabelData default overrides, getEd25519PrivateKey errors, Xcode 15 and Swift 5.9 requirements, and the CocoaPods version range.
- Set the dashboard session duration default to 30 days.
* Fix Flutter v8 docs against native SDK behavior
Verified against web3auth-android-sdk 11.0.0 and web3auth-swift-sdk 13.0.0,
the versions web3auth_flutter 8.0.0 pins.
- enableMFA/manageMFA: remove idToken guidance; both throw for sessions
created with idToken (ENABLE_MFA_NOT_ALLOWED / enabledMfaNotAllowed).
- getEd25519PrivateKey throws without a session; use getPrivateKey as the
session check on the Solana page and in the tutorial.
- Dapp share examples use the OAuth custom-connection flow; idToken takes
the SFA path, which ignores dappShare.
- connectTo errors: Android maps all failures to UserCancelledException,
iOS returns PlatformException (LoginFailedException). Drop UnKnownException
and use PlatformException in showWalletUI/request/MFA samples.
- SPM is on by default in recent Flutter (3.44); keep the flag as fallback
and set the deployment target on the Runner target.
- sessionTime: lead with the 30-day default.
- Note iOS project-config failures surface from init, refreshSession
failure clears the session, manageMFA requires MFA enabled, and the
enableKeyExport dashboard fallback.
- Restore the Flutter custom authentication link, fix tutorial wording,
wrap initialize() in auth0/firebase samples, and note sample imports.
* Fix remaining v11.4.3 inaccuracies found in 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+
* Address review feedback on React Native v10 docs
- Match the official examples: React Native 0.74 (bare) and Expo SDK 51,
and the quickstart's minSdkVersion 23 / compileSdkVersion 34.
- Document react-native-quick-crypto by version: 1.x (with
react-native-nitro-modules and react-native-quick-base64 3.x+) for
React Native 0.75+ with the New Architecture, 0.7.x otherwise. Label the
16 KB-page and randomBytes failures as observed on an emulator.
- Migration guide: remove the useWeb3AuthUser row (v9 already returned
isMFAEnabled and getUserInfo), describe the real connectTo change
(WalletResult to Connection), and limit "doesn't throw" to the hook.
- Scope smart account address order, user operations, and key export
limits to ERC-4337; note EIP-7702 behavior.
- Dapp share: kept until sign-out; a stored share overrides a dappShare
passed to connectTo.
- Quickstart: match the getWeb3AuthConfig(withAA) example and remove the
unreachable wallet-aggregator step.
- Add PASSKEYS and AUTHENTICATOR, walletSdkURL, AppOwnership.Guest;
correct whitelabel mode default (light), dappUrl, defaultChainId
fallback, provider recreation, useAuthTokenInfo token on idToken
sessions, and the MFA highlight directive.
- Session time defaults to the dashboard value (30 days by default).
- Replace web3.js / ethers v5 wording on the React Native chain pages.
* Address rebrand review: service wording, snapshots, naming slips
- Credit the service, not the client SDK, for issuing ID tokens, running
on the Torus Network, MPC key management, and OTP email delivery.
- Show the package name in quickstart install steps so the comma in the
brand name doesn't read as an extra package.
- Revert Smart Accounts Kit snapshots 1.5.0 through 1.7.0 to main.
- Point the "as a signer" link in eoa-wallets.md at embedded-wallets.md.
- Document when to keep "Embedded Wallets" (service, nav, dashboard,
unmigrated titles) in the Embedded Wallets product rule.
- Use the full name on first mention on pages that only had the short
form, and fix a mixed-name sentence, "SDK for Web for", and two
descriptions.
- Rename example card titles from "Web3Auth PnP <platform> SDK", the SDK
card headings, and the Embedded Wallets llms.txt link labels.
* Fix sessionTime default and max in auth adapter settings snippet
The snippet labeled 7 * 86400 as 30 days and gave a 1-day default.
State 30 * 86400 seconds (30 days) for both.
* Fix Embedded Wallet SDK migration guides against SDK source
Verified each guide against the SDK release tags and example history,
and fixed incorrect mappings, missing breaking changes, and wrong
version attributions.
- Web: document connect()/connectTo() returning Connection, the
primaryConnector* renames, CONNECTED payload change, Farcaster
deprecation, required peers, SolanaProvider setup, real v9 snippet,
and v9 package cleanup.
- React Native: fix inverted aggregate-verifier mapping, replace
nonexistent useSFAKey with keep-useCoreKitKey guidance, correct the
class-removal claim, match the official Expo Metro config, and cover
the ethers/signer removal and engine bump.
- iOS: correct v12 SFA detection claim, move v12 behaviors out of the
v13 section, and add dependency and service URL changes.
- Android: target 11.0.2 (JWT Auth-first flow, MFALevel.NONE for silent
SFA, MFA allowed for SFA users), safer initialize() handling,
settings.gradle for JitPack, and missing v8-v10 changes.
- Flutter: handle the per-project SPM opt-out from v7 examples, note
Android uses only the first chain, and add missing type changes and
renames.
- README: Android row now v11 (from v4 through v10).
* Align React Native docs with React Native 0.84 examples
The official bare React Native examples now require React Native 0.84+
for the native URL API, while the Expo example stays on Expo SDK 51
(React Native 0.74) until an Expo SDK ships React Native 0.84+.
- Migration guide: add a React Native version section, upgrade-first
guidance, URL polyfill removal, and async-storage; drop the unverified
"quick-crypto 1.x for 0.75+ New Architecture" rule in favor of what the
examples use (0.7.x), with 1.x for 16 KB page Android devices.
- SDK overview, troubleshooting, and quickstart: same requirements, Node
22.11+, Android SDK 36 targets, and delete (not replace) jcenter().
* Update Android, iOS, and Flutter SDK docs to current SDK behavior
- Android: pin 11.0.2; document that custom JWT sign-in opens the Auth
flow by default and silent SFA needs MFALevel.NONE; MFA is now allowed
for idToken and SFA users; tokens are unavailable only in NONE
sessions; add the refreshSession side effect and an address check.
- iOS: always-OTP email passwordless started in v12.0.0, not v13.
- Flutter: drop the unverified Flutter 3.44 example, warn about the
per-project SPM opt-out in pubspec.yaml, and note that Android uses
only the first chain.
---------
Co-authored-by: Yashovardhan Agrawal <21066442+yashovardhan@users.noreply.github.com>1 parent f58d8cc commit d99ac45
386 files changed
Lines changed: 7369 additions & 4152 deletions
File tree
- .cursor/rules
- embedded-wallets
- authentication
- basic-logins
- custom-connections
- social-logins
- connect-blockchain
- _android-connect-blockchain
- _flutter-connect-blockchain
- _ios-connect-blockchain
- _react-native-connect-blockchain
- evm
- aleph-zero
- ancient8
- arbitrum
- arc
- astar-zkevm
- astar-zkyoto
- avalanche
- base
- bitkub
- bnb
- celo
- chiliz
- cronos
- ethereum
- fhenix
- flare
- flow
- harmony
- hedera
- kinto
- klaytn
- linea
- manta
- metis
- mint
- monad
- moonbeam
- moonriver
- morph
- neon
- nibiru
- opbnb
- optimism
- polygon
- rootstock
- saakuru
- shardeum
- skale
- soneium
- songbird
- tron
- unichain
- xdc
- zetachain
- zilliqa
- zircuit
- other
- solana
- dashboard
- advanced
- features
- infrastructure
- migration-guides
- sdk
- _common
- android
- advanced
- usage
- flutter
- advanced
- usage
- ios
- advanced
- usage
- js
- advanced
- usage
- node
- react-native
- advanced
- hooks
- usage
- react
- _solana-hooks-snippets
- advanced
- _custom-authentication-snippets
- hooks
- solana-hooks
- unity
- advanced
- unreal
- advanced
- vue
- _solana-composables-snippets
- advanced
- composables
- solana-composables
- troubleshooting
- gator_versioned_docs/version-2.0.0
- get-started
- guides/smart-accounts/signers
- metamask-connect
- evm/quickstart
- solana/quickstart
- smart-accounts-kit
- get-started
- guides/smart-accounts/signers
- src
- components
- EWSDKCards
- PasswordlessLoginExamples
- SocialLoginExamples
- pages
- quickstart
- builder/embedded-wallets
- android/stepContent
- angular
- stepContent
- flutter/stepContent
- ios
- stepContent
- nextjs/stepContent
- react_native
- stepContent
- react/stepContent
- vue/stepContent
- tutorials
- plugins/llms-html-injector
- utils
- static
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
14 | 33 | | |
15 | 34 | | |
16 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| |||
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
64 | | - | |
| 66 | + | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| |||
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
76 | | - | |
| 78 | + | |
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
| |||
89 | 91 | | |
90 | 92 | | |
91 | 93 | | |
92 | | - | |
| 94 | + | |
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
99 | 101 | | |
100 | | - | |
| 102 | + | |
101 | 103 | | |
102 | | - | |
| 104 | + | |
103 | 105 | | |
104 | | - | |
| 106 | + | |
105 | 107 | | |
106 | | - | |
| 108 | + | |
107 | 109 | | |
108 | | - | |
| 110 | + | |
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
203 | 208 | | |
204 | 209 | | |
205 | 210 | | |
| |||
228 | 233 | | |
229 | 234 | | |
230 | 235 | | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
| 236 | + | |
245 | 237 | | |
246 | | - | |
247 | | - | |
248 | | - | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
249 | 242 | | |
250 | | - | |
| 243 | + | |
251 | 244 | | |
252 | | - | |
253 | | - | |
| 245 | + | |
| 246 | + | |
254 | 247 | | |
255 | 248 | | |
256 | 249 | | |
257 | 250 | | |
| 251 | + | |
| 252 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
| 148 | + | |
147 | 149 | | |
| 150 | + | |
| 151 | + | |
148 | 152 | | |
149 | 153 | | |
150 | 154 | | |
| |||
159 | 163 | | |
160 | 164 | | |
161 | 165 | | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
178 | 180 | | |
179 | 181 | | |
180 | 182 | | |
| |||
234 | 236 | | |
235 | 237 | | |
236 | 238 | | |
237 | | - | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
238 | 245 | | |
239 | 246 | | |
240 | 247 | | |
| |||
278 | 285 | | |
279 | 286 | | |
280 | 287 | | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | 288 | | |
297 | 289 | | |
298 | 290 | | |
| 291 | + | |
299 | 292 | | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
| 293 | + | |
311 | 294 | | |
312 | | - | |
313 | | - | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
314 | 299 | | |
315 | | - | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
316 | 303 | | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
331 | 311 | | |
332 | 312 | | |
| 313 | + | |
| 314 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
0 commit comments