Created
March 1, 2020 22:31
-
-
Save lapinek/156d2a796d13ea2aa94766f0ad49e68f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// . . . | |
if #available(iOS 11.0, *) { | |
let externalUserAgent = OIDExternalUserAgentIOSSafari(presentingViewController: self) | |
appDelegate.currentAuthorizationFlow = OIDAuthState.authState(byPresenting: request, externalUserAgent: externalUserAgent) { | |
authState, error in | |
completion(authState, error) | |
} | |
} else { | |
appDelegate.currentAuthorizationFlow = OIDAuthState.authState(byPresenting: request, presenting: self) { | |
authState, error in | |
completion(authState, error) | |
} | |
} | |
// . . . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment