Prefer ephemeral sessions in ASWebAuthneticationSession

This commit is contained in:
Shadowfacts 2020-06-23 21:35:14 -04:00
parent 50f1a9a7de
commit 5cb84e271a
1 changed files with 2 additions and 0 deletions

View File

@ -82,6 +82,8 @@ extension OnboardingViewController: InstanceSelectorTableViewControllerDelegate
}
}
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!.start()
}