Skip to main content

sync_refresh 0.1.0 copy "sync_refresh: ^0.1.0" to clipboard
sync_refresh: ^0.1.0 copied to clipboard

Synchronized JWT token refresh for Dio: parallel 401s trigger exactly one refresh; every failed request is replayed. Dio interceptor, drop-in.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add sync_refresh

With Flutter:

 $ flutter pub add sync_refresh

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

dependencies:
  sync_refresh: ^0.1.0

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

Import it

Now in your Dart code, you can use:

import 'package:sync_refresh/sync_refresh.dart';
0
likes
160
points
68
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Synchronized JWT token refresh for Dio: parallel 401s trigger exactly one refresh; every failed request is replayed. Dio interceptor, drop-in.

Repository (GitHub)
View/report issues

Topics

#dio #http #interceptor #jwt #authentication

License

MIT (license)

Dependencies

dio

More

Packages that depend on sync_refresh