You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: Auth0/WebViewProvider.swift
+10-12
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,6 @@
10
10
11
11
@preconcurrencyimport WebKit
12
12
13
-
14
13
/// WARNING: The use of `webViewProvider` [is not recommended](https://auth0.com/blog/oauth-2-best-practices-for-native-apps) and contravenes the guidelines of the OAuth Protocol, which advises against using web views for WebAuth.
15
14
/// The recommended approach is to utilize `ASWebAuthenticationSession`. Employ the provider below only if you fully understand the associated risks and are confident in your decision.
16
15
publicextensionWebAuthentication{
@@ -23,25 +22,24 @@ public extension WebAuthentication {
self.finish(with:.failure(WebAuthError(code:.webViewFailure("An error occurred during a committed main frame navigation of the WebView."), cause: error)))
self.finish(with:.failure(WebAuthError(code:.webViewFailure("An error occurred while starting to load data for the main frame of the WebView."), cause: error)))
0 commit comments