Skip to content

dotja/jwt_token_authentication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JWT Token Authentication

Using JWT authentication with Django Rest Framework.

API endpoints:

  • /api/user/register/
  • /api/user/login/
  • /api/user/
  • /api/user/logout/

Example usage

This repo can be used from the command line with the following steps:

python manage.py makemigrations
python manage.py migrate
python manage.py runserver

You can also use it with httpie as follows:

http GET http://127.0.0.1:8000/api/user/ "Cookie:access_token=<the access token>"

About

Using JWT authentication with Django Rest Framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages