Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributedio_refresh

Dio interceptor for automatic token refresh and retry on API failures

pub.devRemove
fresh_dio

A dio interceptor for automatic token refresh and authentication management.

pub.devRemove
ScoresHealth7582 (best)
Maintenance83 (best)64
Quality97100 (best)
Popularity2977 (best)
Community6380 (best)
Compatibility100100
UsageDownloads (30 days)1.3k22k (best)
Likes13169 (best)
Pub points160 / 160160 / 160
GitHub stars10429 (best)
MaintenanceLatest release2.0.0, 5 weeks ago (best)0.6.0, 9 months ago
Major versions in 12 months10 (best)
Contributors519 (best)
Publisheriamdipanshus.infelangel.dev
FitPlatformsAndroid, iOS, Windows, macOS, LinuxAll (pure Dart)
WASM-readyNoYes
KindFlutter widgetsPure Dart
Code generationNoNo
Direct dependencies32 (best)
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Automatic token refresh and request retrying on API failures
  • Handles concurrent failures with a shared refresh lock to avoid duplicate refresh calls
  • Supports custom token validation and header generation
  • Automatic token refresh and proactive refreshing before requests
  • Single-flight refresh prevents duplicate concurrent refresh calls
  • Pluggable token storage and custom token formats supported
Weaknesses
  • Tight coupling to the Dio HTTP client package
  • Uses a singleton TokenManager pattern which may limit multiple distinct auth sessions
  • Tied specifically to package:dio
WarningsNoneNone
dio_refresh vs fresh_dio: which Flutter package should you use? | pubscout