Helps you to automatically authenticate and store tokens and refresh them, also make api requests using them.
Supports OAuth2.
Shared Preferences used to store tokens.
Features
✅ Automatically store tokens ✅ Automatically refresh tokens ✅ Supports Oauth2 ✅ Supports JWT ✅ Easy REST API call with auth credentials ✅ More coming soon ...
Getting started
To start using package, add it to your dependencies by running this:
flutter pub add restful_api
or add this line into your pubspec.yaml under dependencies:
dependencies:
flutter:
sdk: flutter
# your other dependencies ...
restful_api: <latest_version>
Then import the package in desired files:
import 'package:restful_api/restful_api.dart';
Enjoy coding!
Usage
const like = 'sample';