privy

Integrate Privy embedded wallets and social authentication into React dApps.

6|20|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/andresdefi/cryptoskills --skill privy-andresdefi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: privy
Source: https://github.com/andresdefi/cryptoskills/tree/main/skills/privy
Command: npx skills add https://github.com/andresdefi/cryptoskills --skill privy-andresdefi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @privy-io/react-auth, @privy-io/server-auth, viem, and includes references (resource) components.

What problem does it solve? AI agents and developers frequently produce outdated or incorrect Privy integration code, hitting silent failures like HTTPS-only WebCrypto requirements, blocked EVM wallet creation after Solana-first setup, and access token versus identity token confusion. This Skill provides verified, current guidance for the Privy embedded wallet and authentication SDK. ## Core Features & Use Cases - React SDK Integration: Set up PrivyProvider, usePrivy, useWallets, and useEmbeddedWallet hooks with correct configuration for 15+ auth methods including email, Google, passkeys, and Farcaster. - Server-Side JWT Verification: Protect Express API routes using @privy-io/server-auth with correct access token verification and identity token handling. - Smart Wallet Integration: Enable Safe-based smart wallets with gas sponsorship and ZeroDev Kernel account abstraction. - Use Case: Build a Next.js dApp where users sign in with Google or email, receive a non-custodial embedded wallet automatically, and send sponsored transactions on Base without paying gas. ## Quick Start Use the privy skill to set up a Next.js app with email and Google login that auto-creates an embedded wallet for every user.

Frequently Asked Questions about privy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add social login and embedded wallets to a React dApp?

Install @privy-io/react-auth, wrap your app in PrivyProvider with your app ID, and set loginMethods like email, google, or passkey. Set embeddedWallets.createOnLogin to 'all-users' so every authenticated user gets a non-custodial embedded wallet automatically.

Privy vs Dynamic vs Web3Auth for embedded wallets?

Privy uses 2-of-3 Shamir Secret Sharing with TEE infrastructure, includes built-in Safe smart wallets, Farcaster login, and native Stripe integration. Dynamic uses MPC, Web3Auth uses MPC/TSS without built-in smart wallets, and Magic lacks passkey support.

Why does Privy wallet creation fail silently on my site?

Privy's key sharding relies on the Web Crypto API, which only works in secure contexts. Loading your app over HTTP (except localhost) silently breaks wallet operations. Always deploy behind HTTPS and use localhost for local development.

Does Privy support Solana embedded wallets?

Yes, Privy supports both EVM chains and Solana from the same user session. However, always create the EVM wallet first, because creating a Solana wallet first permanently blocks EVM wallet creation for that user. Privy v3 uses @solana/kit instead of @solana/web3.js.

Why does verifyAuthToken fail with my Privy token?

verifyAuthToken only works with access tokens, not identity tokens. For identity tokens containing user profile data, use getUser({ idToken }) instead. Server-side verification also requires your app secret, not just the app ID.

Do Privy embedded wallets persist across browsers and devices?

No. The device share of the 2-of-3 SSS key is stored in browser local storage, so logging in on a new device requires completing recovery. Always prompt users to set up a recovery share during onboarding to avoid losing access.