dio_refresh 1.0.2 copy "dio_refresh: ^1.0.2" to clipboard
dio_refresh: ^1.0.2 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 Flutter:

 $ flutter pub add dio_refresh

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

dependencies:
  dio_refresh: ^1.0.2

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:dio_refresh/dio_refresh.dart';
4
likes
160
points
264
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

Documentation

API reference

License

MIT (license)

Dependencies

dio, flutter

More

Packages that depend on dio_refresh