public Task CreateAsync(CognitoUser user)
        {
            // Register the user using Cognito
            var signUpRequest = new SignUpRequest
            {
                ClientId = ConfigurationManager.AppSettings["CLIENT_ID"],
                Password = user.Password,
                Username = user.Email,
            };

            var emailAttribute = new AttributeType
            {
                Name  = "email",
                Value = user.Email
            };

            signUpRequest.UserAttributes.Add(emailAttribute);


            _client.SignUpAsync(signUpRequest);
            _client.AdminConfirmSignUp(new AdminConfirmSignUpRequest {
                Username = user.Email, UserPoolId = _poolId
            });

            return(Task.CompletedTask);
        }