Install the Privy React SDK using your package manager of choice:
Report incorrect code
Copy
Ask AI
npm install @privy-io/react-auth@latest
Solana dependencies
If your app uses Privy’s Solana wallets, you must manually install @solana/web3.js and @solana/spl-token.
You will also need to install @solana/kit if you are using @privy-io/react-auth version
2.24 or above.
Additionally, if you are using webpack, include the following configurations to add them to webpack’s externals config. Note that these configurations are not needed if you are using Turbopack: