After the authentication, I don’t need WebView anymore. I saw some references to call dismiss in iOS and Android, but the feature seems to be missing for WinForms.
Hi @jquerijero,
Welcome back to the Auth0 Community !
I’m not an expert when it comes to managing Webview in WinForms, but generally you should be able to close the session using the Close() method.
This would depend on your configuration, but an example would be calling window.close() or webView.CoreWebView2.Close(), or you could also try disposing the WebView2 object with webView.Dispose().
I hope this helps.
Thanks,
Remus
Hello,
It’s crucial to dispose of WebView post-authentication. While iOS and Android have dismiss methods, WinForms may require manual disposal using WebView.Dispose()
or similar. A platform-specific implementation might resolve this gap effectively.
Best Regards,
James Carty
Hi @james143carty,
Thanks for replying to this post.
You should be able to call the Dispose() method directly using Winforms as well. Additionally, it might require passing webView.Visible = false. A similar issue has been discussed under this github thread.
Best regards,
Remus