Skip to main content

Vue Composables for Web3Auth Modal

Web3Auth offers a comprehensive suite of Vue composables to streamline integration and state management within your Vue applications. These composables abstract away common authentication and wallet operations, enabling you to implement Web3Auth features with minimal boilerplate. Each composable is focused on a specific aspect of Web3Auth functionality, making it easy to implement authentication, wallet operations, and blockchain interactions in your Vue projects.

List of Vue Composables

tip

For detailed usage, configuration options, and code examples, refer to the dedicated documentation page for each composable.

Web3Auth Composables

Composable NameDescription
useWeb3AuthCore composable for Web3Auth initialization and state management.

Authentication Composables

Composable NameDescription
useWeb3AuthConnectHandles Web3Auth connection processes.
useWeb3AuthDisconnectManages disconnection from Web3Auth.

Identity Composables

Composable NameDescription
useIdentityTokenRetrieves and manages identity tokens.
useWeb3AuthUserProvides access to the authenticated user's information.

Blockchain Composables

Composable NameDescription
useSwitchChainAllows switching between different blockchain networks.

MFA Composables

Composable NameDescription
useEnableMFAEnables Multi-Factor Authentication (MFA) for enhanced security.
useManageMFAProvides functionality to manage MFA settings.

Wallet Services Plugin Composables

Composable NameDescription
useWalletConnectScannerIntegrates WalletConnect scanner functionality.
useWalletUIManages wallet UI components and user interactions.
useCheckoutFacilitates cryptocurrency checkout processes.
useSwapEnables token swapping capabilities.
useWalletServicesPluginProvides access to wallet service plugins.