Crossmint Auth is designed for staging and moving fast. For production applications,
Crossmint strongly recommends connecting your own authentication provider for full control
over user management. See the Bring Your Own Auth guide.
Before you start
Set up your project and get an API key.
Auth with Wallets Quickstart
See a full working example with auth and wallets.
1
Install the SDK
Run the following command to install the SDK:
npm i @crossmint/client-sdk-react-ui
2
Add the Crossmint providers to your app
Add the necessary Crossmint providers to your app.
"use client";import { CrossmintProvider, CrossmintAuthProvider,} from "@crossmint/client-sdk-react-ui";export function Providers({ children }: { children: React.ReactNode }) { return ( <CrossmintProvider apiKey="YOUR_CLIENT_API_KEY"> <CrossmintAuthProvider> {children} </CrossmintAuthProvider> </CrossmintProvider> );}
Crossmint Auth is designed for staging and getting started quickly. For production applications, Crossmint strongly recommends migrating to your own authentication provider for full control over user management.
When you are ready to go to production, Crossmint recommends:
Set up your own auth provider (Auth0, Firebase, Supabase, Stytch, etc.) and follow the Bring Your Own Auth guide to integrate it with Crossmint via JWT.