Build your own UI
Low level control to authenticate and connect wallets
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.
Setup the ThirdwebProvider
This will ensure that the wallet is available to all components in your app, handle connection states and auto-connection on page load.
Create an in-app wallet
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
.
Authenticate via Google
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.