-
Notifications
You must be signed in to change notification settings - Fork 4
feat: Add OAuth providers (Google, Apple, Facebook) and email verification #507
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Claude ReviewSecurity Issues
Code Issues
Missing Tests
Style Issues
|
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>
Claude ReviewSecurity Issues
Code Issues
Missing Tests
|
Summary
Changes
New Files
packages/web/app/lib/email/email-service.ts- Nodemailer SMTP email servicepackages/web/app/api/auth/verify-email/route.ts- Email verification endpointpackages/web/app/api/auth/resend-verification/route.ts- Resend verification endpointpackages/web/app/components/auth/social-login-buttons.tsx- OAuth buttons componentpackages/web/app/auth/verify-request/- Verification request pagepackages/web/app/auth/error/- Auth error pagedocs/oauth-setup.md- Setup documentationModified Files
packages/web/app/lib/auth/auth-options.ts- Added Apple/Facebook providers and verification callbackspackages/web/app/api/auth/register/route.ts- Added email verification on registrationpackages/web/app/auth/login/auth-page-content.tsx- Replaced disabled Google button with social buttonspackages/web/app/components/auth/auth-modal.tsx- Same social buttons updateTest plan
🤖 Generated with Claude Code