Member-only story
Flutter: Login with Twitter Oauth V2.0
Hi everyone, in todays article I will talk about implementing the Twitter Oauth2 Login flow in Flutter projects using the twitter_login dependency.
It took me a while to discover how to implement because they still working in this Oauth v2 version of Twitter Auth. And I will share with you guys the steps to implement it successfully.
Lets go…
The Context
I need to implement an login with Twitter for my App. Searching for dependencies that could help me, I found this one in pub.dev:
And is the dependency recommended by Firebase too:
On native platforms, a 3rd party library is required to both install the Twitter SDK and trigger the authentication flow.
Install the
twitter_login
plugin:
Looking on the documentation page, seems very simple to implement (and it is!), but there is a catch (at the moment, because they still working on the new release of the dependency).
Explaining a little more, what happens? Projects created in Twitter Developer Portal after November/2021 implements a different flow of…