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. #301
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).
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).