private async void UserButtonOnClick(object sender, EventArgs e) { clearText(); if (string.IsNullOrEmpty(accessToken)) { writeLine("You need to be logged in to get user info"); return; } writeLine("Getting user info..."); var userInfoResult = await _authClient.GetUserInfoAsync(accessToken); if (userInfoResult.IsError) { writeLine($"An error occurred getting user info: {userInfoResult.Error}"); return; } foreach (var claim in userInfoResult.Claims) { writeLine($"{claim.Type} = {claim.Value}"); } }