django-rest-framework-jwt-refresh-token

Plugin for django-rest-framework-jwt that supports long running refresh tokens.

Documentation

Work initially done by Nick Lang from that pull request.

Build Status codecov.io

Usage

For a given long refresh token (stored in DB), POSTing to the delegate endpoint will return a new JWT token.

http POST client_id=app grant_type="urn:ietf:params:oauth:grant-type:jwt-bearer" refresh_token=<REFRESH_TOKEN> api_type=app http://localhost:8000/delegate/
'{"token": "your_jwt_token_...", "refresh_token": "your long running refresh token..."}'

Changelog