How can I get request URLs in Swift webview

60 Views Asked by At

I'm currently working on an app that uses a webview to log in. I've done the exact same thing before on Flutter and was able to intercept and read the token from an incoming request URL. I need to do it in a different Swift application now but am stuck on how to proceed.

I've been trying to do the same thing in Swift to no luck with a couple methods using the navigation delegate but that only gave me the current URL and I cannot find a way to get request URLs from webview for the life of me.

This sign in has to be done in webview since it's done via a third party service and I need to get a token back before it redirects to the main page of the website.

Any ideas?

0

There are 0 best solutions below