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

RevokeJSONWebToken(APIView): #30

Closed
caoimghgin opened this issue Aug 22, 2014 · 2 comments
Closed

RevokeJSONWebToken(APIView): #30

caoimghgin opened this issue Aug 22, 2014 · 2 comments

Comments

@caoimghgin
Copy link

Would it be a good idea to add a RevokeJSONWebToken? For instance, a user is logging out of the session?

@jpadilla
Copy link
Owner

@caoimghgin when using JWT for authentication you don't have "sessions". The usual workflow on modern web apps would be to store the token after login in the browser's local storage. When user does logout, just remove the token from the browser.

@devshark
Copy link

Hello, since sessions are not an option for DRF, can anyone suggest something on how to temporarily store a per-user API result in the django cache? or something else?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants