1
拋出例外,我試着下面的代碼和我得到一個異常時,我稱之爲「providerClient.SignUpAsync」有消息AmazonCognitoIdentityProviderClient註冊在Xamarin
Unable to store key CognitoIdentity:IdentityId:us-east-1:d8dce20b-7e3a-454a-afe5-xxxxxxxxxxxx, got error: -34018
我不能找到一種方法來指定「 userpool id「,我無法理解我在這裏做錯了什麼。如果有人能幫助我在這裏告訴我我在這裏做錯了什麼,我將不勝感激。
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);
}
歡迎來到Stack Overflow!我編輯了您的問題,將錯誤消息放在「quote markdown」中,並將代碼放在「code markdown」中。您可以通過縮進4個空格來將代碼放入代碼中。 –