smart_refresh_token 0.1.2
smart_refresh_token: ^0.1.2 copied to clipboard
A smart Flutter package for automatic Dio token refresh handling.
0.1.2 - 2026-07-01 #
- Updated to latest Flutter and Dart versions.
- Upgraded dependencies:
dio,synchronized,equatable. - Exported
logger.dartfor public use. - Fixed various linting issues and improved code quality.
0.1.1 - 2026-02-20 #
- Compatible with latest Dart version
0.1.0 - 2026-02-05 #
Added #
- Added
InMemoryTokenStoragefor quick starts and tests. - Added
RefreshTokenInterceptor.skipAuthKeysupport to bypass auth injection/refresh for public endpoints. - Added
retryDiooption so retries can use a dedicated Dio instance.
Improved #
- Improved refresh lock behavior:
parallelRefreshnow controls whether requests share the refresh lock. - Improved retry delay calculation to true exponential backoff with optional jitter.
- Safer
Credentials.toString()for short token strings.
Fixed #
- Fixed README/API mismatch for refresh configuration and skip-auth usage.
- Fixed metadata parsing in
Credentials.fromJsonfor loosely typed maps.
0.0.3 - 2025-11-27 #
Added #
- Dynamic retry logic (configurable backoff, max attempts).
- Comprehensive examples demonstrating refresh + retry flows.
- New
RetryConfigfor runtime retry customization.
Improved #
- More stable token refresh interceptor.
- Clearer documentation and example structure.
Fixed #
- Missing platform folders in example project.