fix: authentication session force to ephemeral cause login session in Safari not using issue. resolve #178

This commit is contained in:
CMK 2021-06-24 12:08:57 +08:00
parent 27f569f14e
commit c8e0cd05cf

View File

@ -44,7 +44,6 @@ final class MastodonPickServerViewController: UIViewController, NeedsDependency
tableView.backgroundColor = .clear
tableView.keyboardDismissMode = .onDrag
tableView.translatesAutoresizingMaskIntoConstraints = false
return tableView
}()
@ -319,7 +318,6 @@ extension MastodonPickServerViewController {
)
self.mastodonAuthenticationController = authenticationController
authenticationController.authenticationSession?.prefersEphemeralWebBrowserSession = true
authenticationController.authenticationSession?.presentationContextProvider = self
authenticationController.authenticationSession?.start()