Forum Xamarin.Forms


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

how to sign out using MSAL authentication in xamarin forms?

sagarsagar Member ✭✭✭
edited November 2019 in Xamarin.Forms

I am working on xamarin forms. Where I have done MSAL authentication, sign in working perfectly but for sign out, I followed the official documentation but sign out not working properly. The problem is it is not asking for the password. Following is the code for sign out.

foreach (var user in await App.PCA.GetAccountsAsync())
      await App.PCA.RemoveAsync(user);

I have added this code on the sign out button click. How to sign out properly so that next time it should ask password?


Sign In or Register to comment.