token_keeper 1.1.2 copy "token_keeper: ^1.1.2" to clipboard
token_keeper: ^1.1.2 copied to clipboard

Auth tokens, handled. Pure-Dart token manager with single-flight refresh, proactive expiry handling, Result-based APIs, event stream and a Dio interceptor for drop-in 401 retry.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add token_keeper

With Flutter:

 $ flutter pub add token_keeper

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

dependencies:
  token_keeper: ^1.1.2

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:token_keeper/token_keeper.dart';
0
likes
160
points
359
downloads

Documentation

API reference

Publisher

verified publisherhimanshulahoti.is-a.dev

Weekly Downloads

Auth tokens, handled. Pure-Dart token manager with single-flight refresh, proactive expiry handling, Result-based APIs, event stream and a Dio interceptor for drop-in 401 retry.

Repository (GitHub)
View/report issues

Topics

#authentication #token #oauth #dio #interceptor

Funding

Consider supporting this project:

github.com

License

MIT (license)

Dependencies

dio, equatable, meta, resilify

More

Packages that depend on token_keeper