public async Task <IdentityUser> FindByEmailAsync(string normalizedEmail, CancellationToken cancellationToken) { cancellationToken.ThrowIfCancellationRequested(); if (string.IsNullOrEmpty(normalizedEmail)) { throw new ArgumentNullException(nameof(normalizedEmail)); } try { var result = await _userRepository.GetByEmailAsync(normalizedEmail); return(result); } catch (Exception ex) { Logging.LogException(ex); return(null); } }