Skip to content
pubscout

twitter_login

4.4.2, released 3 years ago by an unverified publisher

Flutter plugin for authentication using Twitter APIs OAuth service

Unverified publisher
$ flutter pub add twitter_login
Source repository

What it does

Provides a way to authenticate users with their Twitter accounts in a Flutter application. Handles the OAuth login flow, supporting Android, iOS, and macOS platforms.

AI-written summary of version 4.4.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to allow users to sign in to your Flutter app using their Twitter account
  • You are targeting Android, iOS, or macOS and need Twitter OAuth integration

Skip it when

  • You require sign-in methods for other social providers without additional packages
  • You are not using Twitter/X APIs for authentication

Strengths

  • Supports Twitter API V2.0
  • Cross-platform support including Android, iOS, and macOS
  • Handles cancellations and error statuses smoothly

Weaknesses

  • Requires manual native configuration for intent filters and URL schemes
  • Limited to Twitter authentication

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
2

Requires setting up a Twitter Developer account, configuring callback URLs, adding intent filters in AndroidManifest.xml, and adding URL schemes in Info.plist for iOS.

final twitterLogin = TwitterLogin(
  apiKey: 'xxxx',
  apiSecretKey: 'xxxx',
  redirectURI: 'example://',
);
final authResult = await twitterLogin.login();

Alternatives

Packages that do the same job and could replace twitter_login.

  • flutter_web_auth_2

    Flutter plugin for authenticating a user with a web service.

  • googleapis_auth

    Obtain Access credentials and authenticated HTTP clients for Google APIs using OAuth 2.0.

  • linkedin_login

    Library for login with LinkedIn OAuth V2 service with OpenID Connect.

  • ali_auth

    This is a plug-in for one click login in the alicloud number authentication service. Alibaba cloud is also used in the one click login function

Works with

Packages commonly used together with twitter_login: ones it builds on, ones built on it, and its own family.