dio_refresh 1.0.0 copy "dio_refresh: ^1.0.0" to clipboard
dio_refresh: ^1.0.0 copied to clipboard

A flutter package for intercepting requests and automatically fetching refresh tokens on API failures

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add dio_refresh

With Flutter:

 $ flutter pub add dio_refresh

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

dependencies:
  dio_refresh: ^1.0.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:dio_refresh/dio_refresh.dart';
4
likes
0
points
259
downloads

Publisher

verified publisheriamdipanshus.in

Weekly Downloads

A flutter package for intercepting requests and automatically fetching refresh tokens on API failures

Repository (GitHub)
View/report issues

Topics

#dio #http #network #interceptor #middleware

License

unknown (license)

Dependencies

dio, flutter

More

Packages that depend on dio_refresh