in src/Amazon.Extensions.CognitoAuthentication/CognitoUser.cs [421:433]
public virtual async Task UpdateAttributesAsync(IDictionary<string, string> attributes, CancellationToken cancellationToken)
{
UpdateUserAttributesRequest updateUserAttributesRequest =
CreateUpdateUserAttributesRequest(attributes);
await Provider.UpdateUserAttributesAsync(updateUserAttributesRequest, cancellationToken).ConfigureAwait(false);
//Update the local Attributes property
foreach (KeyValuePair<string, string> entry in attributes ?? new Dictionary<string, string>())
{
Attributes[entry.Key] = entry.Value;
}
}