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
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,9 @@ public struct OAuth2AuthConfig {
46
46
/// Starting with iOS 12, `ASWebAuthenticationSession` can be used for embedded authorization instead of our custom class. You can turn this on here.
47
47
publicvaruseAuthenticationSession=false
48
48
49
+
/// May be passed through to [ASWebAuthenticationSession](https://developer.apple.com/documentation/authenticationservices/aswebauthenticationsession/3237231-prefersephemeralwebbrowsersessio).
50
+
publicvarprefersEphemeralWebBrowserSession=false
51
+
49
52
#if os(iOS)
50
53
/// By assigning your own style you can configure how the embedded authorization is presented.
@@ -132,11 +132,12 @@ open class OAuth2Authorizer: OAuth2AuthorizerUI {
132
132
133
133
- parameter at: The authorize URL to open
134
134
- parameter redirect: The full redirect URL to use
135
+
- parameter prefersEphemeralWebBrowserSession: may be passed through to [ASWebAuthenticationSession](https://developer.apple.com/documentation/authenticationservices/aswebauthenticationsession/3237231-prefersephemeralwebbrowsersessio).
135
136
- returns: A Boolean value indicating whether the web authentication session starts successfully.
0 commit comments