Auth0
If your app uses Auth0 for authentication, you can use ZeroDev to seamlessly create a smart wallet for each user. Follow these steps:
- Visit the Dashboard.
- Click on the top-right menu.
- Choose
Authentication Providers
. - Enter your Auth0 credentials in the
Auth0 Wallet
section.
Currently, integrating with Auth0 involves some manual setup on our side. Upon saving your Auth0 credentials, we will set up the integration within 24 business hours and email you to confirm. If in doubt, you can get in touch with us on Discord or email support@zerodev.app.
Wagmi
import { Auth0WalletConnector } from '@zerodevapp/wagmi'
const auth0Connector = new Auth0WalletConnector({options: {
projectId: '<your-project-id>',
}})
Example:
Full Code (Editable)
Result
Loading...
Ethers
import { ZeroDevWeb3Auth } from '@zerodevapp/web3auth'
let signer: ZeroDevSigner
const instance = new ZeroDevWeb3Auth(defaultProjectId)
instance.init({onConnect: async () => {
signer = await getZeroDevSigner({
projectId: defaultProjectId,
owner: await getRPCProviderOwner(provider)
})
}})
zeroDevWeb3Auth.connect('auth0')
Example:
Full Code (Editable)
Result
Loading...