From 87280f2e2570f3a7ca2a4e54c50c39bdf0c2020f Mon Sep 17 00:00:00 2001 From: Nick Cooke <36927374+ncooke3@users.noreply.github.com> Date: Tue, 24 Sep 2024 14:46:33 -0400 Subject: [PATCH] [Auth] Match Firebase 10 implementation in WKNavigationDelegate conformance --- .../Sources/Swift/Utilities/AuthWebViewController.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/FirebaseAuth/Sources/Swift/Utilities/AuthWebViewController.swift b/FirebaseAuth/Sources/Swift/Utilities/AuthWebViewController.swift index c247eead731..ee954b0029f 100644 --- a/FirebaseAuth/Sources/Swift/Utilities/AuthWebViewController.swift +++ b/FirebaseAuth/Sources/Swift/Utilities/AuthWebViewController.swift @@ -99,11 +99,11 @@ func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction) async -> WKNavigationActionPolicy { - let canHandleURL = delegate?.webViewController( + _ = delegate?.webViewController( self, canHandle: navigationAction.request.url ?? url - ) ?? false - return canHandleURL ? .allow : .cancel + ) + return .allow } func webView(_ webView: WKWebView,