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

A lightweight Flutter/Dart HTTP client library with automatic JWT token management, auto-refresh on 401 errors, secure token storage, and zero boilerplate authentication code. Supports GET, POST, PU [...]

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add http_auto

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

dependencies:
  http_auto: ^1.1.2

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:http_auto/http_auto.dart';
1
likes
135
points
230
downloads

Publisher

unverified uploader

Weekly Downloads

A lightweight Flutter/Dart HTTP client library with automatic JWT token management, auto-refresh on 401 errors, secure token storage, and zero boilerplate authentication code. Supports GET, POST, PUT, DELETE requests with custom headers, global request configuration, and seamless token refresh callbacks. Perfect for REST APIs, authenticated endpoints, and production Flutter applications. Reduces authentication code by 90%.

Repository (GitHub)
View/report issues

Topics

#http #tokens #authentication #request-handler #refresh-token

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

flutter, flutter_secure_storage, http, jwt_decoder

More

Packages that depend on http_auto