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: Sources/Base/OAuth2AuthConfig.swift
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -40,11 +40,19 @@ public struct OAuth2AuthConfig {
40
40
/// If true it makes the login cancellable, otherwise the cancel button is not shown in the embedded web view.
41
41
publicvarshowCancelButton=true
42
42
43
+
#if os(visionOS) // Must come first per Apple documentation
44
+
/// Starting with iOS 9, `SFSafariViewController` will be used for embedded authorization instead of our custom class. You can turn this off here.
45
+
publicvaruseSafariView=false
46
+
47
+
/// Starting with iOS 12, `ASWebAuthenticationSession` can be used for embedded authorization instead of our custom class. You can turn this on here.
48
+
publicvaruseAuthenticationSession=true
49
+
#else
43
50
/// Starting with iOS 9, `SFSafariViewController` will be used for embedded authorization instead of our custom class. You can turn this off here.
44
51
publicvaruseSafariView=true
45
52
46
53
/// Starting with iOS 12, `ASWebAuthenticationSession` can be used for embedded authorization instead of our custom class. You can turn this on here.
47
54
publicvaruseAuthenticationSession=false
55
+
#endif
48
56
49
57
/// May be passed through to [ASWebAuthenticationSession](https://developer.apple.com/documentation/authenticationservices/aswebauthenticationsession/3237231-prefersephemeralwebbrowsersessio).
0 commit comments