Summary
Implement email verification for users who sign up with email/password. OAuth accounts are excluded from this requirement.
Scope
Backend (API Server)
Database
API Endpoints
Email Service
Verification Flow
Frontend
Behavior
Environment Variables
# Email Service (example: AWS SES)
SMTP_HOST=
SMTP_PORT=
SMTP_USER=
SMTP_PASSWORD=
EMAIL_FROM=noreply@truegul.com
# Or use API-based service
SENDGRID_API_KEY=
Acceptance Criteria
Notes
- Consider rate limiting for resend requests
- Verification link should work only once
- Consider email change flow (re-verification needed)
Summary
Implement email verification for users who sign up with email/password. OAuth accounts are excluded from this requirement.
Scope
Backend (API Server)
Database
email_verifiedcolumn touserstable (default: false)email_verification_tokenstableAPI Endpoints
POST /api/v1/auth/send-verification- Send/resend verification emailGET /api/v1/auth/verify-email?token=xxx- Verify email with tokenPOST /api/v1/auth/signup- Send verification email after signupEmail Service
Verification Flow
Frontend
Behavior
email_verified= true (auto-verified)email_verified= false until verifiedEnvironment Variables
Acceptance Criteria
Notes