How to set up Auth0 with Crossmint’s Wallets as a Service
Estimated integration time: 30 minutes
This guide will show you how to integrate Auth0 and Crossmint in just a few minutes. No pre-requisites.
At the end of this guide you will be able to:
- Allow users to sign up to your website using any social log-in method.
- Create invisible wallets for them upon sign-up.
Setting up a Crossmint account
- Create a Crossmint production (https://crossmint.com/console) or staging account (https://staging.crossmint.com/console)
- On the console, get your Wallet API keys (server-side). You will need at least wallets.create, wallets.read, and wallets:nfts.read. Also grab wallets:nfts.transfer if you want to allow users to transfer their NFTs to other wallets.
- Copy your API key (secret) and project ID
Setting up an Auth0 account
- Go to auth0 and create a free account.
- Once on the dashboard, click on Create Application and choose the application type that fits your needs. In this tutorial we’ll be creating a Single Page Web Application.
3. On your application page, click on Settings and copy the following values:
- Domain
- Client ID
- Client Secret
4. Add a Crossmint action. Go to Actions -> Flows, and select Login.
Then click on Add Action -> Browse Actions, select Crossmint on the marketplace, and click on Add integration.
Lastly, add your Crossmint project ID and Crossmint API key, and select the chain in which you’d like to create the wallet. You can see the possible blockchain values here.
Integrate Auth0 into your website
See Auth0’s documentation here.
That’s it 🎉
Every time a user registers on your website with Auth0, a Crossmint wallet will be created for them.
Other relevant documentation: