StreetCode icon indicating copy to clipboard operation
StreetCode copied to clipboard

Feature/issue 2346

Open YaroslavRosnovskyi opened this issue 8 months ago • 2 comments

dev

JIRA

Summary of issue

  1. Confirmation email is not sent after successful registration.
  2. Emails do not have an expiration mechanism.

Summary of change

  1. Added email confirmation after registration or login with an unconfirmed email.
  2. Implemented custom tokens that expire after 15 minutes.

Front-end PR

https://github.com/ita-social-projects/StreetCode_Client/pull/1563

Summary by CodeRabbit

  • New Features

    • Introduced endpoints for email confirmation and token validation to enhance registration and login processes.
    • Enhanced user messaging with localized notifications for email confirmation prompts.
    • Automatically confirms emails for Google sign-ins.
    • Implemented secure token management with a specified lifespan for email confirmations and password resets.
    • Added structured data transfer objects for email confirmation and token validation.
    • Added new classes and methods for handling email confirmation and token validation logic.
  • Bug Fixes

    • Improved error handling and logging for email confirmation and token validation processes.
  • Tests

    • Updated integration and unit tests to validate the improved authentication and email confirmation flows, including handling various edge cases.

YaroslavRosnovskyi avatar Mar 27 '25 08:03 YaroslavRosnovskyi