Made new WebView authentication work for both Mac and iOS