Skip to main content

React Native hooks for Embedded Wallets

The Embedded Wallets React Native SDK provides a set of React hooks that cover every aspect of authentication and wallet operations. All hooks must be used inside the Web3AuthProvider component tree.

Core hooks

HookDescription
useWeb3AuthAccess SDK state: isConnected, isInitializing, provider, web3Auth, and signer.

Authentication hooks

HookDescription
useWeb3AuthConnectConnect a user via any auth method using connectTo.
useWeb3AuthDisconnectDisconnect the current user session.

Identity hooks

HookDescription
useWeb3AuthUserRead the authenticated user's profile information.
useIdentityTokenRetrieve a signed JWT for server-side verification.

Multi-Factor Authentication hooks

HookDescription
useEnableMFAEnable MFA for the current user's embedded wallet.
useManageMFAManage existing MFA settings and factors.

Wallet Services hooks

HookDescription
useWalletUIShow the Wallet Services in-app browser overlay.
useSignatureRequestRequest a signature or transaction approval via the Wallet Services overlay.