Background
The Solana Foundation maintains a templates repo with both official and community templates. Developers use these templates with create-solana-dapp to quickly scaffold projects.
Privy provides embedded wallets and flexible authentication options including social logins, making Web3 onboarding easier for mainstream users. This task proposes adding a Privy Auth template that demonstrates how to use Privy's authentication in a Solana dApp.
Goal
Add a community template at community/privy-auth that includes:
- A Next.js + Tailwind + TypeScript application with Privy authentication
- Social login options (Google, Twitter, Discord, etc.)
- Embedded wallet creation and management
- User profile management
- Protected routes example
Deliverables
community/privy-auth/ directory with working template code
README.md explaining:
- Privy account setup and configuration
- Dashboard configuration for auth providers
- Embedded wallet features and benefits
- Session management approach
- Links to Privy documentation
- Authentication components:
- Privy login button/modal
- Social login provider configuration
- User profile display with wallet info
- Logout functionality
- Example features:
- Protected routes using Privy session
- Wallet connection state management
- User authentication status indicators
package.json with a create-solana-dapp block for post-install guidance
- Type definitions for Privy user objects and sessions
- Registration in
templates.json so template is discoverable under Community Templates
Acceptance Criteria
Background
The Solana Foundation maintains a templates repo with both official and community templates. Developers use these templates with create-solana-dapp to quickly scaffold projects.
Privy provides embedded wallets and flexible authentication options including social logins, making Web3 onboarding easier for mainstream users. This task proposes adding a Privy Auth template that demonstrates how to use Privy's authentication in a Solana dApp.
Goal
Add a community template at
community/privy-auththat includes:Deliverables
community/privy-auth/directory with working template codeREADME.mdexplaining:package.jsonwith acreate-solana-dappblock for post-install guidancetemplates.jsonso template is discoverable under Community TemplatesAcceptance Criteria
community/privy-authexists with a scaffolded Next.js + Tailwind + TypeScript projectREADME.mdincludes implementation guide and best practicestemplates.jsonpnpm create solana-dapp --template privy-authworks end-to-end