Documentation Index
Fetch the complete documentation index at: https://docs.spark.money/llms.txt
Use this file to discover all available pages before exploring further.
Integrate Privy for seamless authentication and wallet management in your Spark applications. Privy provides a complete authentication and wallet management solution for Web3 applications, making it easy to onboard users and manage their digital identities on Spark.
Learn more ->
Use Cases
Quick Integration
Installation
Install the Privy React SDK using your package manager of choice:
npm install @privy-io/react-auth@latest
Setup
'use client';
import {PrivyProvider} from '@privy-io/react-auth';
export default function Providers({children}: {children: React.ReactNode}) {
return (
<PrivyProvider
appId="your-privy-app-id"
clientId="your-app-client-id"
config={{
// Create embedded wallets for users who don't have a wallet
embeddedWallets: {
ethereum: {
createOnLogin: 'users-without-wallets'
}
}
}}
>
{children}
</PrivyProvider>
);
}
Documentation