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

Auth tokens, handled. Pure-Dart token manager with single-flight refresh, proactive expiry, JWT parsing with metadata extraction, background refresh timer, reactive streams, Result-based APIs, and a D [...]

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.2.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:token_keeper/token_keeper.dart';
0
likes
150
points
325
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, JWT parsing with metadata extraction, background refresh timer, reactive streams, Result-based APIs, 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