Documentation Index
Fetch the complete documentation index at: https://docs.crossmint.com/llms.txt
Use this file to discover all available pages before exploring further.
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.
Crossmint Auth supports the following login methods:
- Email OTP: passwordless sign-in using a one time code delivered to the user’s email.
- Social Accounts: Sign in with Google, X, Farcaster, and more.
- External wallets: connect with crypto wallets for Web3 authentication. Use
"web3" for all wallets, "web3:evm-only" for Ethereum-compatible wallets only, or "web3:solana-only" for Solana wallets only.
To customize which login methods are shown to your users, use the loginMethods prop when initializing Crossmint Auth.
By default, only email and Google are enabled.
app/providers/Providers.tsx
"use client";
import { CrossmintProvider, CrossmintAuthProvider } from "@crossmint/client-sdk-react-ui";
export default function Providers({ children }: { children: React.ReactNode }) {
return (
<CrossmintProvider apiKey={process.env.NEXT_PUBLIC_CROSSMINT_API_KEY ?? ""}>
<CrossmintAuthProvider
loginMethods={["email", "google", "farcaster", "twitter", "web3"]} // Show email, Google, Farcaster, X (Twitter), and external wallets as login methods
>
{children}
</CrossmintAuthProvider>
</CrossmintProvider>
);
}