drf_client 0.0.1 copy "drf_client: ^0.0.1" to clipboard
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 ...

Additional information #

https://docs.tijorat.org/flutter/drf_client

1
likes
0
pub points
26%
popularity

Publisher

verified publishertijorat.org

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 store/refresh using Shared Preferences.

Homepage

License

unknown (LICENSE)

Dependencies

flutter, http, jwt_decoder, oauth2, shared_preferences

More

Packages that depend on drf_client