Hello,
.Result
is used to synchronously wait for the task to complete, and you put the method in Main
function, so the app hangs on.
I noticed that this PublicClientSingleton.Instance.MSALClientHelper.InitializePublicClientAppAsync()
method is to initialize the MSAL client app, I added the Microsoft Authenticator
tag to let them focus on this thread and support further.
(Official doc -Tutorial: Sign in users in .NET MAUI shell app using an external tenant - Microsoft Entra External ID | Microsoft Learn)
Best Regards,
Wenyan Zhang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.