-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Labels
Description
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 codeREADME.mdexplaining:- 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.jsonwith acreate-solana-dappblock for post-install guidance- Type definitions for Privy user objects and sessions
- Registration in
templates.jsonso template is discoverable under Community Templates
Acceptance Criteria
- A new directory
community/privy-authexists with a scaffolded Next.js + Tailwind + TypeScript project - Privy SDK is integrated with proper initialization
- Social login options are configured and working
- Embedded wallet functionality is demonstrated
- Protected routes example is included
-
README.mdincludes implementation guide and best practices - Template is registered in
templates.json -
pnpm create solana-dapp --template privy-authworks end-to-end
Reactions are currently unavailable