简体   繁体   中英

Django JWT token deactivate

I'm creating an API for an android application I'm using Django Rest framework JWT token for API authentication. In perticular case, I want to deactivate the token which is activated for a particular user.

JWT is stateless auth which means it is not stored anywhere on server. When you send JWT token in header of request your server just check if token is valid.
Therefore you cannot deactivate token - you can only delete it in your Andriod app.
More on JWT here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM