Skip to main content

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

Race-free automatic access/refresh token handling for Dio. Single-flight refresh, request replay, proactive JWT expiry refresh, logout-safe, and pluggable secure storage on every platform.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add smart_refresh_token

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  smart_refresh_token: ^0.2.0

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:smart_refresh_token/smart_refresh_token.dart';
2
likes
150
points
116
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Race-free automatic access/refresh token handling for Dio. Single-flight refresh, request replay, proactive JWT expiry refresh, logout-safe, and pluggable secure storage on every platform.

Repository (GitHub)
View/report issues

Topics

#dio #authentication #jwt #oauth #interceptor

License

MIT (license)

Dependencies

dio, flutter

More

Packages that depend on smart_refresh_token