Skip to content
This repository was archived by the owner on May 26, 2020. It is now read-only.

Commit 1ed39fb

Browse files
author
Stan Hu
committed
Merge branch 'master' into django-rest-framework-update
2 parents e68046d + a974ca7 commit 1ed39fb

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ You can easily test if the endpoint is working by doing the following in your te
4949
$ curl -X POST -d "username=admin&password=abc123" http://localhost:8000/api-token-auth/
5050
```
5151

52+
Alternatively, you can use all the content types supported by the Django REST framework to obtain the auth token. For example:
53+
54+
```bash
55+
$ curl -X POST -H "Content-Type: application/json" -d '{"username":"admin","password":"abc123"}' http://localhost:8000/api-token-auth/
56+
```
57+
5258
Now in order to access protected api urls you must include the `Authorization: JWT <your_token>` header.
5359

5460
```bash

rest_framework_jwt/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = '0.1.3'
1+
__version__ = '0.1.4'
22

33
# Version synonym
44
VERSION = __version__

0 commit comments

Comments
 (0)