I am authenticating through WebView .Net Maui Android, and acquire a token on successful login, I have experienced that on re-login scenarios the authentication details is not requested again, because the browser is storing the previously logged in user. I have to clear the browser’s cookies section to get rid of the useless previous user’s details.
<WebView x:Name="Browser" WidthRequest="300" HeightRequest="1000"
Navigating="Browser_Navigating"
Navigated="webOnEndNavigating" />
Xamal.cs
public UAEPass()
{
InitializeComponent();
Browser.Source = "URL";
}
There are many threads about how to clear webview cache in the native android on the stackoverflow. You can refer to these cases and convert the code to c#. Such as: