Build your own UI
You have full control with the connection hooks and functions to build your own UI. To use in-app wallets, you first choose a authentication strategy and then connect.
This will ensure that the wallet is available to all components in your app, handle connection states and auto-connection on page load.
The simplest way to create an in-app wallet is to use the inAppWallet()
function. By default, this will create a wallet that supports email/password login, Google, Apple, Facebook login, and passkey.
You can also customize the wallet by passing in options.
View all in-app wallet options.
Once created, you can connect to the wallet using the connect()
function with the desired strategy
.
Note that for Apple and Facebook, you just need to update the strategy to "facebook" or "apple".
In React and React Native, the useConnect()
hook handles authentication and connection states.
Other social options include Apple, Facebook, Discord, Farcaster and more.