I tried the following code and I am getting an exception when I call "providerClient.SignUpAsync" with a message
Unable to store key CognitoIdentity:IdentityId:us-east-1:d8dce20b-7e3a-454a-afe5-xxxxxxxxxxxx, got error: -34018
I am not able to find a way to specify the "userpool id" in the code and I am not able to understand what am I doing wrong here. I would really appreciate if anyone can help me here to tell me what am I doing wrong here.
CognitoAWSCredentials credentials = new CognitoAWSCredentials(
"us-east-1:d8dce20b-7e3a-454a-afe5-xxxxxxxxxxxx",
RegionEndpoint.USEast1
);
AmazonCognitoIdentityProviderClient providerClient = new AmazonCognitoIdentityProviderClient(credentials,RegionEndpoint.USEast1);
SignUpRequest sr = new SignUpRequest();
sr.ClientId = "71tu9de9v6murgolfxxxxxxxxx";
sr.Username = email;
sr.Password = password;
sr.SecretHash = "1b7i7kdjcdij03309j0354d8tubo62it33gj4ulkxxxxxxxxxxxx";
sr.UserAttributes = new List<AttributeType> {
new AttributeType
{
Name = "email",
Value = email,
},
new AttributeType
{
Name = "phone_number",
Value = phone,
}
};
try{
SignUpResponse result = await providerClient.SignUpAsync(sr);
}