mattdonnelly / Swifter

[DEPRECATED] :bird: A Twitter framework for iOS & OS X written in Swift
MIT License
2.37k stars 387 forks source link

Authorize with actual twitter app or website, not with app-internal web view? #351

Open Bersaelor opened 3 years ago

Bersaelor commented 3 years ago

Did anyone figure out a way how to not open a webview inside the host app and instead ask the actual twitter app or the twitter website for authentication?

The Clubhouse app for example also lets you authenticate with twitter, but it opens the real website or twitter app for that, which means the user can is usually already logged in and doesn't have to type username and password again.

Maybe there is a setting in ASWebAuthenticationSession I am missing, since it says

A browser loads and displays the page, from which the user can authenticate. In iOS, the browser is a secure, embedded web view.

And clearly it's possible to auth with twitter without having to create a embedded web view.

laurentdelorme commented 3 years ago

It seems it is currently impossible to achieve that, unless you get a tip from Twitter themselves ...

https://stackoverflow.com/questions/69337062/how-to-authenticate-using-the-installed-twitter-app