inAppWallet
Creates an app scoped wallet for users based on various authentication methods.
Available authentication methods:
Email
Phone
Passkey
Google
Apple
Facebook
Discord
Farcaster
Can also be configured to use Account Abstraction to directly connect to a ERC4337 smart account based on those authentication methods.
Example
Login with socials
View all available social auth methods
Login with email
Login with phone number
Login with passkey
Enable smart accounts and sponsor gas for your users:
Specify a logo for your login page (Connect UI)
Hide the ability to export the private key within the Connect Modal UI
Open the Oauth window in the same tab
By default, the Oauth window will open in a popup window. You can change this behavior by setting the auth.mode
option to "redirect"
.
Parameters
Returns
The created in-app wallet.