Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributefresh_graphql

A GraphQL link for package:graphql that manages authentication tokens transparently.

pub.devRemove
oauth2

A client library for OAuth2 authentication and authorized HTTP requests.

pub.devRemove
ScoresHealth7783 (best)
Maintenance64 (best)60
Quality100100
Popularity5590 (best)
Community8080
Compatibility100100
UsageDownloads (30 days)4k603k (best)
Likes38382 (best)
Pub points160 / 160160 / 160
GitHub stars429 (best)123
MaintenanceLatest release0.8.0, 9 months ago (best)2.0.5, a year ago
Major versions in 12 months00
Contributors19100+ (best)
Publisherfelangel.devtools.dart.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies44
LicenseMITBSD-3-CLAUSE
Setup effortLowMedium
JudgementStrengths
  • Single-flight token refresh prevents concurrent duplicate refresh requests.
  • Provides an authenticationStatus stream for clean reactive navigation or login state management.
  • Supports custom token formats and pluggable storage layers.
  • 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
Weaknesses
  • Requires custom implementation of token persistence (TokenStorage) for long-term storage.
  • Tied directly to package:graphql link architecture.
  • Requires manual platform-specific implementation for handling redirect URLs and launching browsers
  • Does not support all possible OAuth2 flows
WarningsNone
  • Quiet but busy
fresh_graphql vs oauth2: which Flutter package should you use? | pubscout