privy-integration

Integrate Privy authentication and embedded wallets into React apps with wagmi/viem support.

32|2|Updated Nov 5, 2025
One-click install
npx skills add https://github.com/tenequm/skills --skill privy-integration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: privy-integration
Source: https://github.com/tenequm/skills/tree/main/skills/privy-integration
Command: npx skills add https://github.com/tenequm/skills --skill privy-integration

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @privy-io/react-auth, @privy-io/node, @privy-io/wagmi, @privy-io/react-auth/solana, @privy-io/react-auth/smart-wallets, @solana/kit, viem, wagmi, @tanstack/react-query, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the integration of secure and user-friendly Web3 authentication and wallet infrastructure into web and mobile applications, abstracting away complex blockchain interactions.

Core Features & Use Cases

  • Unified Authentication: Supports email, SMS, social logins, passkeys, and external wallets.
  • Embedded Wallets: Provides self-custodial EVM and Solana wallets directly within your app.
  • Smart Wallets: Enables ERC-4337 accounts for gas sponsorship and batched transactions.
  • Use Case: Integrate Privy to allow users to log in with their email or existing crypto wallet, and automatically create a secure embedded wallet for them to interact with your dApp on EVM and Solana chains.

Quick Start

Integrate Privy authentication and embedded wallets into your React application by wrapping your app with the PrivyProvider.

Frequently Asked Questions about privy-integration

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

FAQPage Schema
How do I integrate Web3 authentication and embedded wallets into a React application?

Web3 authentication is integrated into React applications by wrapping your app component with the PrivyProvider, which configures embedded wallets and login methods like email, SMS, and social logins. This setup abstracts complex blockchain interactions away from your frontend.

Does this Privy integration support both EVM and Solana wallets?

Yes, the Privy integration supports both EVM and Solana networks, providing self-custodial embedded wallets for users. It utilizes specific SDK packages to handle interactions across both ecosystems seamlessly within your decentralized application.

Can I use wagmi and viem with Privy for transaction handling?

Yes, you can use wagmi and viem alongside Privy. The integration includes dedicated dependencies for wagmi and viem, allowing you to manage EVM transactions and interact with smart contracts using these popular libraries.

How do smart wallets work for gas sponsorship and batched transactions?

Smart wallets utilize the ERC-4337 standard to enable gas sponsorship and batched transactions within your application. This allows developers to pay transaction fees on behalf of users or combine multiple operations into a single transaction.

What is the best way to verify Web3 auth tokens server-side?

Server-side token verification is handled using the dedicated Node SDK package included in the integration. This allows your backend to securely validate user authentication tokens and manage authorized API requests from your decentralized application.

What login methods are available for users without an existing crypto wallet?

Users without crypto wallets can log in using email, SMS, social logins, or passkeys. Upon authentication, the integration automatically generates a secure self-custodial embedded wallet for them to interact with your dApp.