WinUI3 using embedded WebView2 instead of window

  • Which SDK this is regarding: Auth0.OidcClient.Core
  • SDK Version: Latest
  • Platform Version: WinUi3 latest
  • Code Snippets/Error Messages/Supporting Details/Screenshots:

Has anyone successfully attempted to render the universal login in-app using WebView2 instead of opening a new window? I have it working with WebView2 in a new window just fine but it kinda sucks for a user experience to be taken out of the app. I want to be able to have one of my app tabs render the login screen if the user has not yet logged in and then hide the tab when they have logged in.

This is likely relevant to all Windows app platforms if someone has a solution in Winforms or WPF. My implementation is with WinUI3, but I am also messing around with this in a WPF solution and I’m not entirely sure how to do this.