Creating Custodial Wallets with 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
Auth0 / JWT
tab in the lower left corner. - Enter your Auth0 credentials in the
Auth0 Wallet
section and clickSave
.
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 '@zerodev/wagmi'
const auth0Connector = new Auth0WalletConnector({options: {
projectId: '<your-project-id>',
}})
Example:
Full Code (Editable)
Result
Loading...
Ethers
import { ZeroDevWeb3Auth } from '@zerodev/web3auth'
let ecdsaProvider: ECDSAProvider
const instance = new ZeroDevWeb3Auth([defaultProjectId])
instance.initialize({onConnect: async () => {
ecdsaProvider = await ECDSAProvider.init({
projectId: defaultProjectId,
owner: getRPCProviderOwner(provider),
});
}}, 'auth0')
zeroDevWeb3Auth.login('auth0')
Example:
Full Code (Editable)
Result
Loading...