Tivix / django-rest-auth

This app makes it extremely easy to build Django powered SPA's (Single Page App) or Mobile apps exposing all registration and authentication related functionality as CBV's (Class Base View) and REST (JSON)
www.tivix.com
MIT License
2.41k stars 661 forks source link

Issues with Login and Logout with Custom JWT Tokens #589

Open tychodev321 opened 4 years ago

tychodev321 commented 4 years ago

last_login is not updated when a user logins in. I am using a Custom JWT. Has anyone faced this issue? If I am using JWT Tokens, what in the database will allow me to know if a user is logged in or not. I am using /rest-auth/logout/ to mark the user as logged out, it does not seem to do anything when JWT Tokens are used. Is this the expected outcome? How do I know if a user is logged in or logged out.

Below are the libraries I am using: Django==2.2.6 django-allauth==0.40.0 django-cors-headers==3.1.1 django-rest-auth==0.9.5 djangorestframework==3.10.3 djangorestframework-jwt==1.11.0 djongo==1.2.36