Skip to content

feat: add Privy Auth community template#330

Open
satyawaniaman wants to merge 1 commit intosolana-foundation:mainfrom
satyawaniaman:satyawaniaman/privy-auth
Open

feat: add Privy Auth community template#330
satyawaniaman wants to merge 1 commit intosolana-foundation:mainfrom
satyawaniaman:satyawaniaman/privy-auth

Conversation

@satyawaniaman
Copy link

##Demo

privy-demo.mp4

Overview

This PR adds a new community template for authentication using Privy with Solana embedded wallets.

Template Features

  • Social Logins: Google, Twitter, Discord, GitHub, and Email authentication via Privy
  • Embedded Wallets: Automatic Solana wallet creation on login (no browser extension needed)
  • Protected Routes: Auth-gated dashboard with automatic redirect for unauthenticated users
  • Wallet Operations: View wallet address, check SOL balance, and sign messages
  • Session Management: Privy handles tokens, refresh flows, and auth state
  • Modern UI: Dark theme with Solana branding (purple/green gradients)

Tech Stack

  • Next.js 15 with App Router
  • Privy for authentication and embedded wallets
  • @solana/kit for Solana RPC interactions
  • Tailwind CSS 4 for styling
  • TypeScript for type safety

Checklist

  • Template placed in community/privy-auth/ directory
  • package.json includes required metadata (name, displayName, description, usecase, keywords)
  • og-image.png generated (1200x630 pixels, under 500KB)
  • All files formatted with pnpm format
  • pnpm lint passes all checks
  • Template tested locally
  • Comprehensive README with setup instructions
  • .env.example included for configuration

Demo

Users can install this template with:

npx create-solana-dapp@latest --template privy-auth

- Add social authentication with Privy (Google, Twitter, Discord, GitHub, Email)
- Include embedded Solana wallet creation on login
- Add protected routes with AuthGuard component
- Include wallet operations (balance check, message signing)
- Add comprehensive README with setup instructions
- Include dark theme with Solana branding
@github-actions
Copy link

This pull request has been automatically marked as stale because it has not had any activity for 7 days.

It will be closed in 7 days if no further activity occurs.

If you believe this PR is still relevant, please add a comment or push new commits to keep it open.

Thank you for your contributions!

@github-actions github-actions bot added the stale label Mar 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant