Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeoauth2

A client library for OAuth2 authentication and authorized HTTP requests.

pub.devRemove
oauth2_client

Interact with OAuth2 servers and handle token storage and refreshing in Flutter.

pub.devRemove
ScoresHealth8392 (best)
Maintenance6197 (best)
Quality100100
Popularity90 (best)77
Community8080
Compatibility100100
UsageDownloads (30 days)603k (best)32k
Likes382 (best)201
Pub points160 / 160160 / 160
GitHub stars123 (best)5
MaintenanceLatest release2.0.5, a year ago5.0.0, yesterday (best)
Major versions in 12 months00
Contributors100+ (best)26
Publishertools.dart.devfemtopedia.de
FitPlatformsAll (pure Dart)Android, iOS, Web, Windows, macOS, Linux
WASM-readyYesYes
KindPure DartFlutter widgets
Code generationNoNo
Direct dependencies4 (best)6
LicenseBSD-3-CLAUSEBSD-2-CLAUSE
Setup effortMediumMedium
JudgementStrengths
  • Supports multiple OAuth2 grant types including Authorization Code with PKCE, Client Credentials, and Resource Owner Password
  • Handles automatic saving and refreshing of credentials
  • Integrates seamlessly with the standard package:http client
  • Supports multiple OAuth2 flows (Authorization Code, Client Credentials, Implicit Grant).
  • Pre-defined clients for many popular providers (Google, Facebook, GitHub, Microsoft, etc.).
  • Helper class automates token refreshing and secure storage.
Weaknesses
  • Requires manual platform-specific implementation for handling redirect URLs and launching browsers
  • Does not support all possible OAuth2 flows
  • Requires platform-specific configuration such as custom URI schemes and Android Manifest updates.
  • Tokens on the web platform are stored in localStorage which is unencrypted.
Warnings
  • Quiet but busy
None
oauth2 vs oauth2_client: which Flutter package should you use? | pubscout