Skip to content

Introduce Email Verification system #362

Description

@ayshadogo

Description:
Allow users to verify their email address via a token sent during registration.

Tasks:

  • Generate a secure random token using crypto
  • Save emailVerificationToken and emailVerificationExpires on the User model
  • Create GET /api/auth/verify-email/:token endpoint
  • Set isVerified: true and clear the token fields on successful verification
  • Return 400 if token is invalid or expired

Acceptance Criteria:
Users can verify their email; unverified users cannot log in.


Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions