Skip to content

Implement Email Verification for New Users #29

@fati-Onchain

Description

@fati-Onchain

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


Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions