in src/Amazon.AspNetCore.Identity.Cognito/CognitoUserManager.cs [617:626]
public override async Task<IdentityResult> SetEmailAsync(TUser user, string email)
{
ThrowIfDisposed();
if (user == null)
{
throw new ArgumentNullException(nameof(user));
}
await _userStore.SetEmailAsync(user, email, CancellationToken).ConfigureAwait(false);
return await UpdateUserAsync(user).ConfigureAwait(false);
}