Ionic React - What is the recommended approach for OAuth?


I have a webapp that has an OAuth flow working on load. It redirects to a custom OAuth login server, which does it’s magic, and then redirects back after login. I’m currently trying to get this webapp working on mobile using Ionic.

The main question I need answered is, is it possible to use the same webview that the app is being loaded into to carry out the OAuth flow? Or do I have to use a separate webview/InAppBrowser?

Currently the error I am running into is
Unable to load app. Ensure the server is running at http://localhost, or modify the appUrl setting in capacitor.config.json which seems to suggest redirecting to a different host for the OAuth flow is probably not possible, but I just wanted to make sure.