feat: Add OAuth providers (Google, Apple, Facebook) and email verification#513
Conversation
…ation - Add Google, Apple, and Facebook OAuth providers to NextAuth configuration - Implement email verification flow for credentials-based signup - Create email service using nodemailer with Fastmail SMTP support - Add social login buttons component with proper branding - Create verify-request and error pages for auth flows - Update registration to send verification emails - Block unverified users from logging in with credentials - Add comprehensive OAuth setup documentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Security fixes: - Fix verification token enumeration by returning same message for all cases - Lazy-load email transporter to avoid initialization at module load - Add HTML escaping for email in verification templates - Conditionally load OAuth providers only when env vars are configured - Handle email sending failure gracefully in registration Style fixes: - Replace hardcoded colors with theme tokens in auth pages - Add comment explaining brand-specific OAuth button colors 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Security improvements: - Add rate limiting to register and resend-verification endpoints - Add Zod validation to resend-verification endpoint - Fix timing attack vulnerability with consistent response delays - Check user exists before updating emailVerified in verify-email Code improvements: - Only show OAuth buttons for configured providers - Replace hardcoded colors with design tokens in email template - Add providers-config API endpoint for dynamic OAuth button visibility
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Claude ReviewIssues
|
Security improvements: - Document in-memory rate limiter limitations for serverless - Fix timing attack by using consistent 2.5s minimum response time - Add email validation with Zod before using in verification URLs Code quality: - Replace hardcoded colors with design tokens in auth pages - Add unit tests for rate limiter functionality
Claude Review✅ Ready to merge - Minor issues noted below, but nothing blocking. Issues
|
🤖 Generated with Claude Code
Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com