Skip to content

Django REST application with JWT token authentication, registration, refresh token and logout

Notifications You must be signed in to change notification settings

Falco13/jwt-auth-token-django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jwt-auth-token-django

Django application with token authentication, refresh & access tokens, registration and logout

  • User model with usernamefield = email, and without username field.
  • Implemented the ability to authentication with jwt-token, access_token refresh with refresh_token from cookies, logout with clearing cookies.
  • Fixed authentication error code 401 instead of 403.

API end-points:

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

Used tools:
✔️ Python
✔️ Django REST Framework
✔️ PyJWT
✔️ SQLite database