StreetCode
StreetCode copied to clipboard
Feature/issue 2346
dev
JIRA
Summary of issue
- Confirmation email is not sent after successful registration.
- Emails do not have an expiration mechanism.
Summary of change
- Added email confirmation after registration or login with an unconfirmed email.
- 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.