token_keeper 1.1.1
token_keeper: ^1.1.1 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_keeperThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
token_keeper: ^1.1.1Alternatively, your editor might support dart 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';