As part of we added email verification feature to the auth service. This ticket is about moving this feature to the notification service because we would keep contract details in that service.
As part of the ticket we should change endpoints:
The following endpoint should be responsible for retrieving pending user verifications. The endpoint should not change the data in the service. It should be read-only
The next endpoint should be responsible for sending new verification token to the user. The old token should be set as invalid.
The last endpoint should be used only in the verification message (for now email) that is sent to the user. The endpoint should verify token and update user's contact details.
moved functionality to the notification service
update UI to send a request about resend verification email to the correct service -> moved
functionality should not be changed
if user is created and email is set, the user should get verification email temporary disabled ->
the user has 12 hours to verified an email, after that time he has to create a new token
each time when user change email a new verification email should be sent
before user verifies a new email address, the notification service should use the old one