Install the Privy React SDK using your package manager of choice:
Copy
Ask AI
npm install @privy-io/react-auth@latest
Solana dependencies on yarn
If your app uses yarn, you must either manually also install @solana/web3.js and @solana/spl-token or add them to webpack’s externals config if your app does not use Solana: