Skip to content

Commit d415bfb

Browse files
authored
Merge pull request #57 from ChrisNiebuhrMSFT/msal3x
Standardize the way how the authentication token is acquired.
2 parents 5a4d8ba + 33cb63e commit d415bfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

active-directory-wpf-msgraph-v2/MainWindow.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ private async void CallGraphButton_Click(object sender, RoutedEventArgs e)
5454
try
5555
{
5656
authResult = await app.AcquireTokenInteractive(scopes)
57-
.WithAccount(accounts.FirstOrDefault())
57+
.WithAccount(firstAccount)
5858
.WithParentActivityOrWindow(new WindowInteropHelper(this).Handle) // optional, used to center the browser on the window
5959
.WithPrompt(Prompt.SelectAccount)
6060
.ExecuteAsync();

0 commit comments

Comments
 (0)