How to delete a django JWT token?

后端 未结 2 514
别跟我提以往
别跟我提以往 2020-12-18 06:29

I am using the Django rest framework JSON Web token API that is found here on github (https://github.com/GetBlimp/django-rest-framework-jwt/tree/master/).

I can succ

2条回答
  •  忘掉有多难
    2020-12-18 06:51

    Yes, it's correct to say that JWT tokens are not stored in the database. What you want, though, is to invalidate a token based on user activity, which doesn't seem to be possible ATM.

    So, you can do what you suggested in your question, or redirect the user to some token refreshing endpoint, or even manually create a new token.

提交回复
热议问题