Fix logging in on iOS 13
This commit is contained in:
parent
b3b9d566b7
commit
03f89c752e
|
@ -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!!
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue