in DeviceProfileSample/Program.cs [34:52]
public static async Task Main(string[] args)
{
try
{
var authResult = await SignInUserAndGetTokenUsingMSAL(scopes);
// Create authorization header of the form "Bearer {AccessToken}"
var authHeader = authResult.CreateAuthorizationHeader();
ListProjects(authHeader);
}
catch (Exception ex)
{
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("Something went wrong.");
Console.WriteLine("Message: " + ex.Message + "\n");
}
Console.ReadLine();
}