Skip to content

feat(api): implement email verification for new user sign-ups #21

@nullscribe

Description

@nullscribe

Type of Task

Feature

User Story / Goal

As a new user, after I register, I want to receive an email with a verification link so that I can confirm I own the email address, enhancing my account's security.

Acceptance Criteria

  • After a user is created, a USER_REGISTERED event is published to the message queue (e.g., RabbitMQ).
  • A worker service consumes this event.
  • The worker generates a unique, single-use verification token and saves it to the user's record.
  • The worker calls the new Email Service to send a templated verification email to the user.
  • A new API endpoint GET /api/auth/verify-email?token=... is created to validate the token and mark the user as verified.

Technical Breakdown (Optional)

No response

Affected Packages

api

Designs / Mockups (Optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestweb-apiweb api issues

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions