Explanation:
Non-registered user has the opportunity to check, this email is available for registration
After registration the user are authorized, in one request
The user, which successfully authorized, receives access and refresh tokens in a cookies
Once the access token has expired, the user automatically receives a new token pair
The user has 10 attempts to enter an incorrect password, or - block for 1 hour
Authorized user gets full access to their animals
In this solution used MapStruct mapper and Maven build tool
So, crucial step before starting, is used mvn clean and mvn install commands
That'll make necessary beans implementations for mapper
So, let's run it