From 5cb84e271a24c3cd944c67f1b56413c16aec7465 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Tue, 23 Jun 2020 21:35:14 -0400 Subject: [PATCH] Prefer ephemeral sessions in ASWebAuthneticationSession --- Tusker/Screens/Onboarding/OnboardingViewController.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tusker/Screens/Onboarding/OnboardingViewController.swift b/Tusker/Screens/Onboarding/OnboardingViewController.swift index 9b7750f82c..acc44658a2 100644 --- a/Tusker/Screens/Onboarding/OnboardingViewController.swift +++ b/Tusker/Screens/Onboarding/OnboardingViewController.swift @@ -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() }