token_interceptor 1.0.1 copy "token_interceptor: ^1.0.1" to clipboard
token_interceptor: ^1.0.1 copied to clipboard

A Flutter Dio interceptor for handling JWT token authentication with automatic refresh.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add token_interceptor

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

dependencies:
  token_interceptor: ^1.0.1

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:token_interceptor/token_interceptor.dart';
1
likes
140
points
8
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter Dio interceptor for handling JWT token authentication with automatic refresh.

Repository (GitHub)

License

MIT (license)

Dependencies

dio, flutter, flutter_secure_storage

More

Packages that depend on token_interceptor