Merge pull request #180 from tootsuite/fix/auth-ephemeral
Fix authentication session not using exist Safari token issue
This commit is contained in:
commit
65a8307f50
|
@ -44,7 +44,6 @@ final class MastodonPickServerViewController: UIViewController, NeedsDependency
|
||||||
tableView.backgroundColor = .clear
|
tableView.backgroundColor = .clear
|
||||||
tableView.keyboardDismissMode = .onDrag
|
tableView.keyboardDismissMode = .onDrag
|
||||||
tableView.translatesAutoresizingMaskIntoConstraints = false
|
tableView.translatesAutoresizingMaskIntoConstraints = false
|
||||||
|
|
||||||
return tableView
|
return tableView
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
@ -319,7 +318,6 @@ extension MastodonPickServerViewController {
|
||||||
)
|
)
|
||||||
|
|
||||||
self.mastodonAuthenticationController = authenticationController
|
self.mastodonAuthenticationController = authenticationController
|
||||||
authenticationController.authenticationSession?.prefersEphemeralWebBrowserSession = true
|
|
||||||
authenticationController.authenticationSession?.presentationContextProvider = self
|
authenticationController.authenticationSession?.presentationContextProvider = self
|
||||||
authenticationController.authenticationSession?.start()
|
authenticationController.authenticationSession?.start()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue