smart_refresh_token 0.0.1 copy "smart_refresh_token: ^0.0.1" to clipboard
smart_refresh_token: ^0.0.1 copied to clipboard

A smart Flutter package for automatic Dio token refresh handling.

smart_refresh_token #

A smart Flutter package for automatic Dio token refresh handling. This package simplifies managing access and refresh tokens in your Flutter apps and automatically retries failed requests after refreshing tokens.

Features #

  • Automatic refresh of expired access tokens using a refresh token.
  • Transparent request retry after token refresh.
  • Secure storage of tokens using flutter_secure_storage.
  • Customizable token refresher function.
  • Handles network errors gracefully.
  • Easy integration with Dio interceptors.

Getting Started #

Prerequisites #

  • Flutter >= 1.17.0
  • Dart >= 3.9.0
  • Add dependencies in your pubspec.yaml:
dependencies:
  dio: ^5.9.0
  synchronized: ^3.4.0
  flutter_secure_storage: ^9.2.4
  smart_refresh_token:
    path: ../smart_refresh_token  # or use published version from pub.dev
1
likes
0
points
25
downloads

Publisher

unverified uploader

Weekly Downloads

A smart Flutter package for automatic Dio token refresh handling.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dio, flutter, flutter_secure_storage, synchronized

More

Packages that depend on smart_refresh_token