Prefer ephemeral sessions in ASWebAuthneticationSession
This commit is contained in:
parent
50f1a9a7de
commit
5cb84e271a
|
@ -82,6 +82,8 @@ extension OnboardingViewController: InstanceSelectorTableViewControllerDelegate
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
DispatchQueue.main.async {
|
DispatchQueue.main.async {
|
||||||
|
// Prefer ephemeral sessions to make it easier to sign into multiple accounts on the same instance.
|
||||||
|
self.authenticationSession!.prefersEphemeralWebBrowserSession = true
|
||||||
self.authenticationSession!.presentationContextProvider = self
|
self.authenticationSession!.presentationContextProvider = self
|
||||||
self.authenticationSession!.start()
|
self.authenticationSession!.start()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue