Description: Users can register and immediately authenticate without verifying their email address. Add an email verification step to prevent fake account creation.
Tasks:
- Generate a signed verification token on user registration
- Send a verification email using a mail service (e.g., Nodemailer + SMTP or SendGrid)
- Create a
GET /auth/verify-email?token= endpoint to confirm the address
- Block login for unverified accounts (or return a clear error)
- Add
isEmailVerified boolean field to the User entity
Acceptance Criteria:
- New users receive a verification email upon registration
- Unverified users cannot log in until they confirm their email
- Expired or tampered tokens are rejected
ETA: 1 day
Description: Users can register and immediately authenticate without verifying their email address. Add an email verification step to prevent fake account creation.
Tasks:
GET /auth/verify-email?token=endpoint to confirm the addressisEmailVerifiedboolean field to the User entityAcceptance Criteria:
ETA: 1 day