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
| Hook | Description |
|---|---|
useWeb3Auth | Access SDK state: isConnected, isInitializing, provider, web3Auth, and signer. |
Authentication hooks
| Hook | Description |
|---|---|
useWeb3AuthConnect | Connect a user via any auth method using connectTo. |
useWeb3AuthDisconnect | Disconnect the current user session. |
Identity hooks
| Hook | Description |
|---|---|
useWeb3AuthUser | Read the authenticated user's profile information. |
useIdentityToken | Retrieve a signed JWT for server-side verification. |
Multi-Factor Authentication hooks
| Hook | Description |
|---|---|
useEnableMFA | Enable MFA for the current user's embedded wallet. |
useManageMFA | Manage existing MFA settings and factors. |
Wallet Services hooks
| Hook | Description |
|---|---|
useWalletUI | Show the Wallet Services in-app browser overlay. |
useSignatureRequest | Request a signature or transaction approval via the Wallet Services overlay. |