drf_client 0.0.1
drf_client: ^0.0.1 copied to clipboard
A complete REST API client for Django Rest Framework based backends, empowering you to build your app effortlessly without reinventing the wheel. Supports Django OAuth Toolkit, SimpleJWT, and token st [...]
Helps you to automatically authenticate and store tokens and refresh them, also make api requests using them.
Features #
✅ Automatically store tokens using Shared Preferences ✅ Automatically refresh tokens ✅ Supports Oauth2 by Django Oauth Toolkit ✅ Supports JWT by SimpleJWT ✅ 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 drf_client
or add this line into your pubspec.yaml under dependencies:
dependencies:
flutter:
sdk: flutter
# your other dependencies ...
drf_client: <latest_version>
Then import the package in desired files:
import 'package:drf_client/drf_client.dart';
Enjoy coding!
Usage #
Firstly, initialize the config by:
// coming soon ...