private async void Login_Click(object sender, RoutedEventArgs e) { CognitoHelper cognitoHelper = new CognitoHelper(); ioioSetting.All.cognitoUser = await cognitoHelper.ValidateUser("atumm", "B@y7cgmc"); Console.WriteLine(ioioSetting.All.cognitoUser.Username); string email = string.Empty; ioioSetting.All.cognitoUser.Attributes.TryGetValue("email", out email); GetUserResponse r = await cognitoHelper.GetUserInfo(ioioSetting.All.cognitoUser); Console.WriteLine(email); }