Fix logging in on iOS 13

This commit is contained in:
Shadowfacts 2019-06-04 13:31:12 -04:00
parent b3b9d566b7
commit 03f89c752e
Signed by untrusted user: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 7 additions and 0 deletions

View File

@ -69,6 +69,7 @@ class OnboardingViewController: UIViewController {
} }
} }
} }
self.authenticationSession!.presentationContextProvider = self
self.authenticationSession!.start() self.authenticationSession!.start()
} }
} }
@ -81,3 +82,9 @@ class OnboardingViewController: UIViewController {
} }
} }
extension OnboardingViewController: ASWebAuthenticationPresentationContextProviding {
func presentationAnchor(for session: ASWebAuthenticationSession) -> ASPresentationAnchor {
return UIApplication.shared.delegate!.window!!
}
}