public async Task <TokenDto> LoginUserAsync(string email, string password)
        {
            var user = await userRepository.GetUserByEmailAsync(email);

            var hash = encryptionManager.GetHash(password, user.Salt);

            encryptionManager.CompareHash(user.Password, hash);
            return(tokenManager.GenerateToken(user.Id, user.Email));
        }