in src/Amazon.AspNetCore.Identity.Cognito/CognitoUserManager.cs [70:88]
public override async Task<TUser> FindByEmailAsync(string email)
{
ThrowIfDisposed();
if (email == null)
{
throw new ArgumentNullException(nameof(email));
}
#if NETSTANDARD2_0
email = NormalizeKey(email);
#else
email = NormalizeEmail(email);
#endif
var user = await _userStore.FindByEmailAsync(email, CancellationToken).ConfigureAwait(false);
if (user != null)
{
await PopulateTokens(user, ClaimTypes.Email, email).ConfigureAwait(false);
}
return user;
}