token_keeper 1.2.0
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_keeperWith Flutter:
$ flutter 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.2.0Alternatively, 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';