1👍
I guess it depends a bit on which auth system you are using. In case you are using rest_framework.authtoken
, you could simply clear the Token
table:
from rest_framework.authtoken.models import Token
Token.objects.all().delete();
No token, not logged in 😉
Source:stackexchange.com