privy

Integrate Privy embedded wallets, social login, and server-side JWT verification into React dApps.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? AI agents and developers frequently misintegrate Privy's embedded wallet SDK: wallets fail silently over HTTP, Solana wallets created before EVM permanently block EVM creation, identity tokens get passed to access-token verifiers, and Farcaster logins skip wallet creation. This Skill encodes the correct integration patterns, error fixes, and SDK references so dApp authentication and wallet onboarding work the first time. ## Core Features & Use Cases - Embedded Wallet & Auth Integration: Configure PrivyProvider with 15+ login methods (email, Google, passkey, Farcaster, wallet), auto-create non-custodial embedded wallets secured by 2-of-3 Shamir Secret Sharing with TEE, and sign messages or send transactions via viem. - Server-Side JWT Verification: Protect Express API routes by verifying Privy access tokens with PrivyClient, and fetch user profiles from identity tokens using getUser. - Smart Wallet & Gas Sponsorship: Enable Safe-based smart wallets with paymaster-sponsored transactions, or integrate ZeroDev Kernel for advanced account abstraction. - Use Case: Build a Next.js dApp where users sign in with Google, receive an embedded wallet automatically, and send a gas-sponsored transaction on Base — with an Express backend verifying their JWT on protected routes. ## Quick Start Set up a Next.js app with PrivyProvider configured for email and Google login, auto-create embedded wallets for all users, and show the authenticated user's embedded wallet address.

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 with Privy?

Install @privy-io/react-auth, wrap your app in PrivyProvider with your app ID, set loginMethods like ['email', 'google', 'passkey'], and set embeddedWallets.createOnLogin to 'all-users'. Use usePrivy() for auth state and useWallets() to access the embedded wallet.

Privy vs Dynamic vs Web3Auth for embedded wallets?

Privy offers auth-first onboarding with SSS+TEE embedded wallets, 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 uses delegated keys with limited Solana support.

Why is my Privy embedded wallet not created after login?

The default createOnLogin is 'off', so set it to 'all-users' or 'users-without-wallets'. Farcaster logins with 'users-without-wallets' skip creation because Farcaster accounts have custody wallets. Also wait for useWallets() ready to be true before checking.

Why does Privy verifyAuthToken fail with invalid token?

verifyAuthToken only accepts access tokens, not identity tokens. For identity tokens use getUser({ idToken }) instead. Also confirm the server PrivyClient is constructed with both the app ID and app secret, not just the app ID.

Does Privy embedded wallet work across browsers and devices?

No, the device share of the 2-of-3 Shamir key split is stored in browser local storage, so wallets do not persist across browsers or devices. Users must set up a recovery share during onboarding to access the wallet elsewhere.

How do I fix Privy v3 Solana peer dependency errors?

Privy v3 replaced @solana/web3.js with @solana/kit. Uninstall @solana/web3.js, install @solana/kit, and update imports: Connection becomes createSolanaRpc and PublicKey becomes address().