Repository navigation
Update Embedded Wallets React Native docs for SDK v10 - #3084
Closed
yashovardhan wants to merge 2 commits into
Closed
yashovardhan wants to merge 2 commits into
yashovardhan wants to merge 2 commits into
Conversation
- 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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- 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.
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Updates the Embedded Wallets React Native docs to match the published
@web3auth/react-native-sdk10.0.0. The previous pages described v9 (useWeb3Auth().provider,web3Auth.signer), which no longer exist in v10.SDK reference
useWeb3Auth().connectionexposesethereumProvider(EIP-1193) andsolanaWallet(Wallet Standard).connectToresolves toConnection | nulland does not throw.useAccessToken,useAuthTokenInfo,useRefreshSession.useIdentityTokenis now marked deprecated.@web3auth/react-native-sdk/wagmi) and Solana hooks (@web3auth/react-native-sdk/solana:SolanaProvider,useSolanaWallet,useSignMessage,useSignTransaction,useSignAndSendTransaction).connectToparameters: removed the nonexistentredirectUrlandsessionTime.AUTH_CONNECTION: removedWEIBO; addedREDDITandTELEGRAM.MFA_LEVELS: removedDEFAULT;mfaLevelis aconnectTooption.web3AuthOptions: rewritten fromSdkInitParams.0x65/0x66/0x67. The SDK maps only these to Wallet Standard chains.react-native-quick-crypto1.x is documented as required, along withreact-native-nitro-modulesandreact-native-quick-base64.@toruslabs/react-native-web-browser1.1.0 still callsjcenter().idTokensign-in behaves), dapp share, and MFA pages updated to SDK behavior.Elsewhere
connection.ethereumProviderwith viem. Removed the@web3auth/basegetEvmChainConfigusage from the Ethereum and Monad pages.@solana/kit6 and@solana-program/system0.12.globals.jsand pointed steps at markers that exist inrn-bare-quick-start.connectTo.Verification
npm run buildsucceeds with no broken links or anchors.tsc --noEmit, Prettier, and Vale pass on the changed files; the remaining Vale notes are in pre-existing text or code identifiers.connectToopens the auth page with the correct URL.randomBytes.jcenter()build failure.Issue(s) fixed
Fixes #
Preview
Checklist