How to avoid WKWebView handle auth challenges?

Hi,


I would like to use WKWebView in my app to implment some custom behavior. However, I don't want to handle authentication challenges in the app. I would prefer for iOS to handle them instead. I read through the documentation and I couldn't find a way to acomplish this. I was successful handling the authentication challenge in the app by using the function below from the WKNavigationDelagate.


webView(_:didReceive:completionHandler:)


However, I would like to avoid having the app handle this. Is that possible with the WKWebView? The documentation states that:


If you do not implement this method, the web view will respond to the authentication challenge with the

rejectProtectionSpace
disposition.


https://developer.apple.com/reference/webkit/wknavigationdelegate/1455638-webview


I tested it and it's exactly what happens if I don't implemente the function above. The WKWebView just gets a 401 unathorized error.


Thanks in advance.