flavors / django-graphql-jwt

JSON Web Token (JWT) authentication for Graphene Django

Home Page:https://django-graphql-jwt.domake.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to delete a Token from the server-side (mutation). when a user gives a logout the token will be destroyed from server-side by using mutation? is it possible? If so. please explain.

yabesh12 opened this issue · comments

JWT is stateless authentication approach, ie server-side does not store any info about token, so nothing to remove. Either you need another authentication appoach or you need to add a DB and respecive code to store info about tokens (in order to have something to delete).

Okay. I got a better approach without creating the DB for jwt. #11 (comment)