chopper_utils 0.0.1 copy "chopper_utils: ^0.0.1" to clipboard
chopper_utils: ^0.0.1 copied to clipboard

Authentication utilities for Chopper-generated OpenAPI clients, with common request headers, coordinated access-token refresh, automatic 401 retries, and optional HTTP logging.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add chopper_utils

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

dependencies:
  chopper_utils: ^0.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:chopper_utils/chopper_utils.dart';
0
likes
160
points
186
downloads

Documentation

API reference

Publisher

verified publishernessoftware.com

Weekly Downloads

Authentication utilities for Chopper-generated OpenAPI clients, with common request headers, coordinated access-token refresh, automatic 401 retries, and optional HTTP logging.

Repository (GitHub)
View/report issues

Topics

#chopper #rest-api #authentication #token-refresh #interceptors

License

MIT (license)

Dependencies

chopper, flutter, result_utils

More

Packages that depend on chopper_utils